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:
NiLuJe
2024-01-17 02:19:37 +01:00
parent 65e22ceafc
commit 90ae4acca6
11 changed files with 24 additions and 11 deletions

View File

@@ -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)