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