mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Ensure TextWidget's width and heigth are integer
And removed workarounds in coverbrowser plugin.
This commit is contained in:
@@ -41,9 +41,9 @@ function TextWidget:updateSize()
|
||||
if not tsize then
|
||||
self._length = 0
|
||||
else
|
||||
self._length = tsize.x
|
||||
self._length = math.ceil(tsize.x)
|
||||
end
|
||||
self._height = self.face.size * 1.5
|
||||
self._height = math.ceil(self.face.size * 1.5)
|
||||
end
|
||||
|
||||
function TextWidget:getSize()
|
||||
|
||||
Reference in New Issue
Block a user