Merge pull request #728 from dalvorsn/master

Fixed issue in function fitAll
This commit is contained in:
Henrique Santiago 2016-05-01 16:21:04 -03:00
commit 0dfdb22509
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function UIMiniWindowContainer:fitAll(noRemoveChild)
end
local child = children[i]
if child ~= noRemoveChild then
if child ~= noRemoveChild and child:isVisible() then
local childHeight = child:getHeight()
sumHeight = sumHeight - childHeight
table.insert(removeChildren, child)