v0.8.0: fixed a small layout issue with ChangeButton
This commit is contained in:
+2
-2
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user