@Override protected int adjustHeightAnchor(int height, Component comp) { if (comp instanceof Field<?>) { Field<?> f = (Field<?>) comp; if (!f.isHideLabel() && labelAlign.equals(LabelAlign.TOP)) { El elem = findLabelElement(comp); if (elem != null) { height -= elem.getHeight(); } } } return super.adjustHeightAnchor(height, comp); }
@Override protected void onResize(int width, int height) { super.onResize(width, height); Size frameSize = el().getFrameSize(); if (isAutoWidth()) { getLayoutTarget().setWidth("auto"); } else if (width != -1) { getLayoutTarget().setWidth(width - frameSize.width, true); } if (isAutoHeight()) { getLayoutTarget().setHeight("auto"); } else if (height != -1) { getLayoutTarget() .setHeight( height - frameSize.height - legend.getHeight() - (GXT.isIE ? legend.getMargins("b") : 0), true); } }
protected int getLiveScrollerHeight() { return liveScroller.getHeight(true); }