mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Floor dimension computations (mul/div). (#6264)
* floor most every dimension computations involving MUL or DIV Should avoid passing nonsensical floating point coordinates/dimensions to the UI code. * Update base * https://github.com/koreader/koreader-base/pull/1113 * https://github.com/koreader/koreader-base/pull/1114 * https://github.com/koreader/koreader-base/pull/1115 * Bump android-luajit-launcher https://github.com/koreader/android-luajit-launcher/pull/230 https://github.com/koreader/android-luajit-launcher/pull/231
This commit is contained in:
@@ -42,7 +42,7 @@ function MultiInputDialog:init()
|
||||
input_type = field.input_type or "string",
|
||||
text_type = field.text_type,
|
||||
face = self.input_face,
|
||||
width = self.width * 0.9,
|
||||
width = math.floor(self.width * 0.9),
|
||||
focused = k == 1 and true or false,
|
||||
scroll = false,
|
||||
parent = self,
|
||||
@@ -68,7 +68,7 @@ function MultiInputDialog:init()
|
||||
TextBoxWidget:new{
|
||||
text = field.description,
|
||||
face = Font:getFace("x_smallinfofont"),
|
||||
width = self.width * 0.9,
|
||||
width = math.floor(self.width * 0.9),
|
||||
}
|
||||
}
|
||||
table.insert(VerticalGroupData, CenterContainer:new{
|
||||
|
||||
Reference in New Issue
Block a user