Fixed issue in function fitAll: mini windows containers was exceeding the size of the panels.

This commit is contained in:
dalvorsn 2016-04-24 18:25:21 -03:00
parent fa3068f6e6
commit a165bef741
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)