v1.2.0: fixed itemslot text not resizing when margins are used

This commit is contained in:
Evan Debenham 2022-03-22 11:26:46 -04:00
parent da1a1b9570
commit e5203fb29d

View File

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