});
}
@Override
public final void pack() {
final Dimension size = getLayoutPanel().getPreferredSize();
int w = getOffsetWidth() - getLayoutPanel().getOffsetWidth();
int h = getOffsetHeight() - getLayoutPanel().getOffsetHeight();
setContentSize(new Dimension(Math.min(Math.max(size.width,
currentAnchor.getOffsetWidth())
+ w, Window.getClientWidth() - getAbsoluteLeft() - w), Math.min(
size.height + h, Window.getClientHeight() - getAbsoluteTop() - h)));
// layout(true);