Commit d1ac0273 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

#773 Fixed wrong container height.

parent d50a5f2a
......@@ -346,6 +346,10 @@ public abstract class AbstractMenu extends Stack implements Disposable {
return footerTable;
}
protected Container<Table> getLocaleMenuContainer() {
return localeMenuContainer;
}
@Override
protected void sizeChanged() {
if (background != null && border != null) {
......
......@@ -120,8 +120,8 @@ public class UserMenu extends AbstractMenu {
}
private void resizeContainerSize(){
if(getStage() != null && container != null) {
float scrollPaneHeight = TablexiaSettings.getViewportHeight(getStage());
if(getStage() != null && container != null && getLocaleMenuContainer() != null) {
float scrollPaneHeight = TablexiaSettings.getViewportHeight(getStage()) - getLocaleMenuContainer().getHeight();
container.height(scrollPaneHeight);
container.invalidateHierarchy();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment