snapMinimizeNormalHeight_ = new NormalHeight(
layout_.getSplitterBottom(),
layout_.getOffsetHeight(),
Window.getClientHeight());
eventBus.fireEvent(new GlassVisibilityEvent(true));
}
});
layout_.addSplitterResizedHandler(new SplitterResizedHandler()
{
public void onSplitterResized(SplitterResizedEvent event)
{
WindowState topState = resizePanes(layout_.getSplitterBottom());
// we're already in normal if the splitter is being invoked
if (topState != WindowState.NORMAL)
{
topWindowStateChangeManager_.onWindowStateChange(
new WindowStateChangeEvent(topState));
}
eventBus.fireEvent(new GlassVisibilityEvent(false));
}
});
}
}