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) {
|
||||
status.measure();
|
||||
if (status.width > width){
|
||||
if (status.width > width - (margin.left + margin.right)){
|
||||
status.scale.set(PixelScene.align(0.8f));
|
||||
} else {
|
||||
status.scale.set(1f);
|
||||
|
|
Loading…
Reference in New Issue
Block a user