}
}
@Override
protected void onResize(int width, int height) {
Size frameSize = getFrameSize();
Size adjustBodySize = adjustBodySize();
if (isAutoWidth()) {
getContainerTarget().getStyle().clearWidth();
} else {
width -= frameSize.getWidth();
if (header != null) {
int aw = width - appearance.getHeaderElem(getElement()).getFrameWidth(Side.LEFT, Side.RIGHT);
header.setWidth(aw);
}
getContainerTarget().setWidth(width - adjustBodySize.getWidth(), true);
}
layoutBars();
// EXTGWT-2773 - Button bar inner frame height
if (buttonBar != null) {
appearance.getFooterElem(getElement()).setHeight(buttonBar.getOffsetHeight());
}
if (isAutoHeight()) {
getContainerTarget().getStyle().clearHeight();
} else {
height -= frameSize.getHeight();
height -= headerVisible ? getAppearance().getHeaderSize(getElement()).getHeight() : 0;
height -= getAppearance().getFooterElem(getElement()).getHeight(false);
getContainerTarget().setHeight(height - adjustBodySize.getHeight(), true);
}
super.onResize(width, height);
}