if ((status = fo.layout(areaContainer)).isIncomplete()) {
this.marker = i;
if (/*(i != 0) && */(status.getCode() == Status.AREA_FULL_NONE)) {
+ if(tableHeader != null)
+ tableHeader.removeLayout(areaContainer);
+ if(tableFooter != null)
+ tableFooter.removeLayout(areaContainer);
// status = new Status(Status.AREA_FULL_SOME);
}
//areaContainer.end();
public int getYPosition()
{
- return areaContainer.getYPosition();
+ return areaContainer.getCurrentYPosition();
}
public int getHeight()
{
- return areaContainer.getHeight();
+ return areaContainer.getHeight() + spaceBefore + spaceAfter;
}
public Status layout(Area area) throws FOPException {
public int getAreaHeight() {
return areaContainer.getHeight();
}
+
+ public void removeLayout(Area area)
+ {
+ area.removeChild(areaContainer);
+ this.resetMarker();
+ }
}
public int getYPosition()
{
- return areaContainer.getYPosition() - spaceBefore;
+ return areaContainer.getCurrentYPosition() - spaceBefore;
}
public void setYPosition(int value)
return yPosition + this.paddingTop + this.borderWidthTop;
}
+ public int getCurrentYPosition() {
+ return yPosition;
+ }
+
public void setYPosition(int value) {
yPosition = value;
}