Fixed issue #24

This commit is contained in:
Henrique Santiago
2012-08-20 20:56:16 -03:00
parent ddd3f84ad7
commit 4caf5bfcac
5 changed files with 17 additions and 1 deletions

View File

@@ -93,7 +93,11 @@ function onContainerOpen(container, previousContainer)
local cellSize = layout:getCellSize()
containerWindow:setContentMinimumHeight(cellSize.height*1)
containerWindow:setContentMaximumHeight(cellSize.height*layout:getNumLines())
containerWindow:setContentHeight(3*cellSize.height/2)
if not previousContainer then
local filledLines = math.max(math.ceil(container:getItemsCount() / layout:getNumColumns()), 1)
containerWindow:setContentHeight(filledLines*cellSize.height)
end
end
function onContainerClose(container)