Adjust positions after element update

This commit is contained in:
Gabriel Tofvesson 2024-10-12 05:22:21 +02:00
parent df3810cce7
commit c084dc55aa
2 changed files with 3 additions and 5 deletions

View File

@ -71,10 +71,8 @@ function Children:with(elementType)
function elementType:setDirty(fullInvalidate) function elementType:setDirty(fullInvalidate)
Element.setDirty(self, fullInvalidate) Element.setDirty(self, fullInvalidate)
if fullInvalidate then for _,child in self:_iterateChildren() do
for _,child in self:_iterateChildren() do child:setDirty(fullInvalidate)
child:setDirty(fullInvalidate)
end
end end
end end

View File

@ -570,7 +570,7 @@ local PAGES = {
dataAvailableText:setText(availableText) dataAvailableText:setText(availableText)
requestCapProgress:setProgress(pageState.request / group:getItemCount()) requestCapProgress:setProgress(pageState.request / group:getItemCount())
stuffContainer:setDirty(true) stuffContainer:adjustPositions()
end end
local function bindRequestButton(increment) local function bindRequestButton(increment)