mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Chore: Fix a few more widgets that were breaking dimen refs in
paintTo...
This commit is contained in:
@@ -94,10 +94,16 @@ end
|
||||
function FrameContainer:paintTo(bb, x, y)
|
||||
local my_size = self:getSize()
|
||||
if not self.dimen then
|
||||
self.dimen = Geom:new{x = x, y = y, w = my_size.w, h = my_size.h}
|
||||
self.dimen = Geom:new{
|
||||
x = x, y = y,
|
||||
w = my_size.w, h = my_size.h
|
||||
}
|
||||
else
|
||||
self.dimen.x = x
|
||||
self.dimen.y = y
|
||||
-- Possibly redundant
|
||||
self.dimen.w = my_size.w
|
||||
self.dimen.h = my_size.h
|
||||
end
|
||||
local container_width = self.width or my_size.w
|
||||
local container_height = self.height or my_size.h
|
||||
|
||||
Reference in New Issue
Block a user