v0.8.0: fixed a small layout issue with ChangeButton
This commit is contained in:
parent
59824f1556
commit
591d6bc214
|
@ -60,8 +60,8 @@ public class ChangeButton extends Component {
|
||||||
protected void layout() {
|
protected void layout() {
|
||||||
super.layout();
|
super.layout();
|
||||||
|
|
||||||
icon.x = x + (width - icon.width) / 2f;
|
icon.x = x + (width - icon.width()) / 2f;
|
||||||
icon.y = y + (height - icon.height) / 2f;
|
icon.y = y + (height - icon.height()) / 2f;
|
||||||
PixelScene.align(icon);
|
PixelScene.align(icon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user