private int xoffset;
private int yoffset;
private int cellIPD;
+ private int height;
/**
* Create a new Cell layout manager.
xoffset = off;
}
+ /**
+ * Set the row height that contains this cell.
+ *
+ * @param h the height of the row
+ */
+ public void setRowHeight(int h) {
+ height = h;
+ }
+
/**
* Add the areas for the break points.
* The cell contains block stacking layout managers
addBackground(curBlockArea, backgroundProps);
}
+ curBlockArea.setHeight(height);
+
flush();
childBreaks.clear();
super(fobj);
}
+ /**
+ * Initialize properties for this layout manager.
+ *
+ * @param propMgr the property manager for the fo
+ */
protected void initProperties(PropertyManager propMgr) {
borderProps = propMgr.getBorderAndPadding();
backgroundProps = propMgr.getBackgroundProps();
if (stackSize.min > min) {
min = stackSize.min;
}
- // the optimum is the minimum of all optimums
+ // the optimum is the maximum of all optimums
if (stackSize.opt > opt) {
opt = stackSize.opt;
}
while ((childLM = (Cell)breakPosIter.getNextChildLM()) != null) {
childLM.setXOffset(xoffset);
childLM.setYOffset(yoffset);
+ childLM.setRowHeight(rowHeight);
childLM.addAreas(breakPosIter, lc);
}
xoffset += col.getWidth();