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

@@ -82,7 +82,6 @@ function ReaderBookmark:addToMainMenu(menu_items)
local SpinWidget = require("ui/widget/spinwidget")
local curr_perpage = G_reader_settings:readSetting("bookmarks_items_per_page") or self.bookmarks_items_per_page_default
local items = SpinWidget:new{
width = math.floor(Screen:getWidth() * 0.6),
value = curr_perpage,
value_min = 6,
value_max = 24,
@@ -104,7 +103,6 @@ function ReaderBookmark:addToMainMenu(menu_items)
local default_font_size = Menu.getItemFontSize(curr_perpage)
local curr_font_size = G_reader_settings:readSetting("bookmarks_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,