*/
private String _flowName;
+ /**
+ * Content-width of current column area during layout
+ */
+ private int contentWidth;
+
private Status _status = new Status(Status.AREA_FULL_NONE);
this.marker = i;
markerSnapshot = this.getMarkerSnapshot(new Vector());
}
+ // Set current content width for percent-based lengths in children
+ setContentWidth(currentArea.getContentWidth());
_status = fo.layout(currentArea);
return _status;
}
+ protected void setContentWidth(int contentWidth) {
+ this.contentWidth = contentWidth;
+ }
/**
* Return the content width of this flow (really of the region
* in which it is flowing).
*/
public int getContentWidth() {
- if (area != null)
- return area.getContentWidth(); // getAllocationWidth()??
- else
- return 0; // not laid out yet
+ return this.contentWidth;
}
protected String getElementName() {
} else if (regionClass.equals(RegionAfter.REGION_CLASS)) {
area.setAbsoluteHeight(area.getPage().getBody().getMaxHeight());
}
+ setContentWidth(area.getContentWidth());
for (int i = 0; i < numChildren; i++) {
FObj fo = (FObj)children.elementAt(i);