mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Chore: Review FrameContainer constructors for shared dimen objects
Nothing else seems problematic, this is mostly just cosmetic sanitization around Geom objects.
This commit is contained in:
@@ -1012,7 +1012,7 @@ function TextBoxWidget:_renderImage(start_row_idx)
|
||||
margin = 0,
|
||||
padding = 0,
|
||||
RightContainer:new{
|
||||
dimen = {
|
||||
dimen = Geom:new{
|
||||
w = image.width,
|
||||
h = status_height,
|
||||
},
|
||||
@@ -1189,7 +1189,7 @@ function TextBoxWidget:getSize()
|
||||
self:_updateLayout()
|
||||
end
|
||||
|
||||
return Geom:new{w = self.width, h = self._bb:getHeight()}
|
||||
return Geom:new{x = 0, y = 0, w = self.width, h = self._bb:getHeight()}
|
||||
end
|
||||
|
||||
function TextBoxWidget:paintTo(bb, x, y)
|
||||
|
||||
Reference in New Issue
Block a user