mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
TextWidget: Feed Geom a full-size table in getSize()
Might save a realloc down the line.
This commit is contained in:
@@ -292,6 +292,8 @@ end
|
||||
function TextWidget:getSize()
|
||||
self:updateSize()
|
||||
return Geom:new{
|
||||
x = 0,
|
||||
y = 0,
|
||||
w = self._length,
|
||||
h = self.forced_height or self._height,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user