Widgets: Fix a bunch of regressions after the FrameContainer change in #11364

FrameContainer now preserves its self.dimen, which means it cannot be
shared with another widget or container that might also modify it during
painting ;).

Fix #11370
Fix https://github.com/koreader/koreader/pull/11364#issuecomment-1894454657
Fix #11379
This commit is contained in:
NiLuJe
2024-01-17 01:58:35 +01:00
parent 5e4d182608
commit 65e22ceafc
7 changed files with 29 additions and 30 deletions

View File

@@ -119,9 +119,6 @@ function ProgressWidget:paintTo(bb, x, y)
else
self.dimen.x = x
self.dimen.y = y
-- Possibly redundant
self.dimen.w = my_size.w
self.dimen.h = my_size.h
end
if self.dimen.w == 0 or self.dimen.h == 0 then return end