Skip to content

Commit

Permalink
Reduce the maximum item button size for dynamic size adjustment, for …
Browse files Browse the repository at this point in the history
…a better look with small inventories
  • Loading branch information
Nevcairiel committed Aug 26, 2019
1 parent c2f1dde commit 1f74769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ItemContainer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function ItemContainer:Layout()
cols = cols + 1
scale = width / (size*cols)
rows = floor(height / (size*scale))
until (scale <= 1.5 and cols*rows >= count)
until (scale <= 1.33 and cols*rows >= count)

--layout the items
local items = self.items
Expand Down

0 comments on commit 1f74769

Please sign in to comment.