v0.8.0: fixed a small layout issue with ChangeButton

This commit is contained in:
Evan Debenham 2019-11-26 14:12:47 -05:00
parent 59824f1556
commit 591d6bc214

View File

@ -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);
} }
} }