mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
More fixes to miniwindow
This commit is contained in:
@@ -35,7 +35,7 @@ function UIMiniWindowContainer:fitAll(noRemoveChild)
|
||||
|
||||
-- try to resize noRemoveChild
|
||||
local maximumHeight = selfHeight - (sumHeight - noRemoveChild:getHeight())
|
||||
if noRemoveChild:getMinimumHeight() <= maximumHeight then
|
||||
if noRemoveChild:isResizeable() and noRemoveChild:getMinimumHeight() <= maximumHeight then
|
||||
sumHeight = sumHeight - noRemoveChild:getHeight() + maximumHeight
|
||||
addEvent(function() noRemoveChild:setHeight(maximumHeight) end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user