v3.2.3: fixed a hero button layout issue on desktop
This commit is contained in:
@@ -600,7 +600,10 @@ public class HeroSelectScene extends PixelScene {
|
|||||||
@Override
|
@Override
|
||||||
protected void layout() {
|
protected void layout() {
|
||||||
super.layout();
|
super.layout();
|
||||||
icon.y = y + (HEIGHT - icon.height()) / 2f;
|
//if we're super tall (i.e. rendering into display inset) then put hero at the top
|
||||||
|
if (height > 30) {
|
||||||
|
icon.y = y + (HEIGHT - icon.height()) / 2f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user