Updated to OTCv8 3.0 rev 80

This commit is contained in:
OTCv8
2021-05-19 18:52:49 +00:00
parent 6c1d9f194f
commit 5e90b45dce
11 changed files with 88 additions and 15 deletions

View File

@@ -167,6 +167,13 @@ function onContainerOpen(container, previousContainer)
containerWindow:setContentMinimumHeight(cellSize.height)
containerWindow:setContentMaximumHeight(cellSize.height*layout:getNumLines())
if container:hasPages() then
local height = containerWindow.miniwindowScrollBar:getMarginTop() + containerWindow.pagePanel:getHeight()+17
if containerWindow:getHeight() < height then
containerWindow:setHeight(height)
end
end
if not previousContainer then
local filledLines = math.max(math.ceil(container:getItemsCount() / layout:getNumColumns()), 1)
containerWindow:setContentHeight(filledLines*cellSize.height)