Fixed some portrait layout bugs
This commit is contained in:
@@ -502,6 +502,11 @@ public class ModsDialog extends BaseDialog{
|
|||||||
sel.hide();
|
sel.hide();
|
||||||
githubImportMod(mod.repo, mod.hasJava, null);
|
githubImportMod(mod.repo, mod.hasJava, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(Core.graphics.isPortrait()){
|
||||||
|
sel.buttons.row();
|
||||||
|
}
|
||||||
|
|
||||||
sel.buttons.button("@mods.github.open", Icon.link, () -> {
|
sel.buttons.button("@mods.github.open", Icon.link, () -> {
|
||||||
Core.app.openURI("https://github.com/" + mod.repo);
|
Core.app.openURI("https://github.com/" + mod.repo);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -99,12 +99,15 @@ public class ResearchDialog extends BaseDialog{
|
|||||||
}else{
|
}else{
|
||||||
itemDisplay.marginTop(0f);
|
itemDisplay.marginTop(0f);
|
||||||
}
|
}
|
||||||
|
itemDisplay.invalidate();
|
||||||
|
itemDisplay.layout();
|
||||||
};
|
};
|
||||||
|
|
||||||
onResize(checkMargin);
|
onResize(checkMargin);
|
||||||
|
|
||||||
shown(() -> {
|
shown(() -> {
|
||||||
checkMargin.run();
|
checkMargin.run();
|
||||||
|
Core.app.post(checkMargin);
|
||||||
|
|
||||||
Planet currPlanet = ui.planet.isShown() ?
|
Planet currPlanet = ui.planet.isShown() ?
|
||||||
ui.planet.state.planet :
|
ui.planet.state.planet :
|
||||||
|
|||||||
Reference in New Issue
Block a user