Commit 06eff0fd authored by Drahomír Karchňák's avatar Drahomír Karchňák

Merge branch 'feature-gamemenu' into 'V3.5.1'

#773 Fixed wrong container height.

See merge request !597
parents 9a7a21a5 d1ac0273
......@@ -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