protected void calcLayoutHeight( LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) { setHeight(getHeight() + ((int) margin.top() + (int) border.top() + (int) padding.top() + (int) padding.bottom() + (int) border.bottom() + (int) margin.bottom())); setChildrenHeight(getChildrenHeight() + ((int) margin.top() + (int) border.top() + (int) padding.top() + (int) padding.bottom() + (int) border.bottom() + (int) margin.bottom())); }
protected void calcLayoutHeight( LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) { setHeight(getHeight() + ((int) margin.top() + (int) border.top() + (int) padding.top() + (int) padding.bottom() + (int) border.bottom() + (int) margin.bottom())); setChildrenHeight(getChildrenHeight() + ((int) margin.top() + (int) border.top() + (int) padding.top() + (int) padding.bottom() + (int) border.bottom() + (int) margin.bottom())); }
public void reset(LayoutContext c) { super.reset(c); setTopMarginCalculated(false); setBottomMarginCalculated(false); setDimensionsCalculated(false); setMinMaxCalculated(false); setChildrenHeight(0); if (isReplaced()) { getReplacedElement().detach(c); setReplacedElement(null); } if (getChildrenContentType() == BlockBox.CONTENT_INLINE) { removeAllChildren(); } if (isFloated()) { _floatedBoxData.getManager().removeFloat(this); } if (getStyle().isRunning()) { c.getRootLayer().removeRunningBlock(this); } }
public void reset(LayoutContext c) { super.reset(c); setTopMarginCalculated(false); setBottomMarginCalculated(false); setDimensionsCalculated(false); setMinMaxCalculated(false); setChildrenHeight(0); if (isReplaced()) { getReplacedElement().detach(c); setReplacedElement(null); } if (getChildrenContentType() == BlockBox.CONTENT_INLINE) { removeAllChildren(); } if (isFloated()) { _floatedBoxData.getManager().removeFloat(this); _floatedBoxData.getDrawingLayer().removeFloat(this); } if (getStyle().isRunning()) { c.getRootLayer().removeRunningBlock(this); } }
setChildrenHeight(getHeight()); if (delta > 0) { setHeight(getHeight() + delta); setChildrenHeight(getChildrenHeight() + delta);
setChildrenHeight(getHeight()); if (delta > 0) { setHeight(getHeight() + delta); setChildrenHeight(getChildrenHeight() + delta);