263264265266267268269270271272273274275276277278279
if (!isAttached()) { return; } if (getWidgetCount() > 0) { Size size = MyDOM.getSize(getLayoutTarget()); int width = size.width; int height = size.height; if (lastSize != null) { if (lastSize.width == width && lastSize.height == height) { return; } } lastSize = new Size(width, height); } layout.layout(this); }
645646647648649650651
* * @param elem the element * @return the size */ public static Size getSize(Element elem) { return new Size(getWidth(elem), getHeight(elem)); }
691692693694695696697698699700701
} if (height != Style.DEFAULT) { attachSize.height = height; } } else { attachSize = new Size(width, height); } return; } MyDOM.setSize(elem, width, height, true);