mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix dimen returned by getSize used as dimen in inputcontainer
This commit is contained in:
@@ -52,7 +52,8 @@ end
|
||||
|
||||
function InputContainer:paintTo(bb, x, y)
|
||||
if not self.dimen then
|
||||
self.dimen = self[1]:getSize()
|
||||
local content_size = self[1]:getSize()
|
||||
self.dimen = Geom:new{w = content_size.w, h = content_size.h}
|
||||
end
|
||||
self.dimen.x = x
|
||||
self.dimen.y = y
|
||||
|
||||
Reference in New Issue
Block a user