mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Checkbutton: ensure max width, multiline if needed (#8066)
This commit is contained in:
@@ -399,6 +399,7 @@ function FrontLightWidget:addWarmthWidgets(num_warmth, step, vertical_group)
|
||||
local checkbutton_auto_nl = CheckButton:new({
|
||||
text = _("Auto"),
|
||||
checked = self.powerd.auto_warmth,
|
||||
max_width = math.floor(self.screen_width * 0.3),
|
||||
callback = function()
|
||||
if self.powerd.auto_warmth then
|
||||
self.powerd.auto_warmth = false
|
||||
|
||||
Reference in New Issue
Block a user