More fixes to miniwindow

This commit is contained in:
Henrique Santiago
2012-08-21 18:40:47 -03:00
parent f27f005757
commit 8d89d1194a
12 changed files with 39 additions and 17 deletions

View File

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