SpinWidget: similar size in portrait and landscape (#8226)

This commit is contained in:
hius07
2021-09-25 11:40:04 +03:00
committed by GitHub
parent 456dfeaf8e
commit 1e47cd7e5f
22 changed files with 15 additions and 81 deletions

View File

@@ -1058,7 +1058,6 @@ Enabling this option will restrict display to the chapter titles of progress bar
local SpinWidget = require("ui/widget/spinwidget")
local curr_perpage = G_reader_settings:readSetting("toc_items_per_page") or self.toc_items_per_page_default
local items = SpinWidget:new{
width = math.floor(Screen:getWidth() * 0.6),
value = curr_perpage,
value_min = 6,
value_max = 24,
@@ -1084,7 +1083,6 @@ Enabling this option will restrict display to the chapter titles of progress bar
local default_font_size = Menu.getItemFontSize(curr_perpage)
local curr_font_size = G_reader_settings:readSetting("toc_items_font_size") or default_font_size
local items_font = SpinWidget:new{
width = math.floor(Screen:getWidth() * 0.6),
value = curr_font_size,
value_min = 10,
value_max = 72,