v1.2.0: fixed itemslot text not resizing when margins are used
This commit is contained in:
parent
da1a1b9570
commit
e5203fb29d
|
@ -119,7 +119,7 @@ public class ItemSlot extends Button {
|
||||||
|
|
||||||
if (status != null) {
|
if (status != null) {
|
||||||
status.measure();
|
status.measure();
|
||||||
if (status.width > width){
|
if (status.width > width - (margin.left + margin.right)){
|
||||||
status.scale.set(PixelScene.align(0.8f));
|
status.scale.set(PixelScene.align(0.8f));
|
||||||
} else {
|
} else {
|
||||||
status.scale.set(1f);
|
status.scale.set(1f);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user