Schematic fixes

This commit is contained in:
Anuken
2019-11-01 17:48:30 -04:00
parent 4743434e9c
commit ad23cbc03c
3 changed files with 13 additions and 5 deletions

View File

@@ -34,6 +34,7 @@ public class SchematicsDialog extends FloatingDialog{
addCloseButton();
buttons.addImageTextButton("$schematic.import", Icon.loadMapSmall, this::showImport);
shown(this::setup);
onResize(this::setup);
}
void setup(){
@@ -123,7 +124,7 @@ public class SchematicsDialog extends FloatingDialog{
sel[0].getStyle().up = Tex.pane;
if(++i % 4 == 0){
if(++i % (mobile ? Core.graphics.isPortrait() ? 2 : 3 : 4) == 0){
t.row();
}
}