mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix incorrect minimums on font size changing controls in viewer. Fixes #2103870 [Ebook-viewer: "Zoom step size" values less than 10 don't seem to work](https://bugs.launchpad.net/calibre/+bug/2103870)
This commit is contained in:
parent
b0bc3871a0
commit
74f0e7d7fe
@ -9,6 +9,7 @@ from book_list.globals import get_session_data
|
||||
from dom import unique_id
|
||||
from read_book.globals import runtime
|
||||
from read_book.prefs.utils import create_button_box
|
||||
from read_book.prefs.font_size import MAX_FONT_SIZE, MIN_FONT_SIZE
|
||||
|
||||
CONTAINER = unique_id('standalone-font-settings')
|
||||
DEFAULT_STANDARD_FONT = 'serif'
|
||||
@ -46,7 +47,7 @@ def standard_font(settings):
|
||||
|
||||
|
||||
def minimum_font_size(settings):
|
||||
ans = E.input(max='100', min='0', step='1', type='number', name='minimum_font_size')
|
||||
ans = E.input(max=str(MAX_FONT_SIZE), min=str(MIN_FONT_SIZE), step='1', type='number', name='minimum_font_size')
|
||||
if jstype(settings.minimum_font_size) is 'number':
|
||||
ans.value = settings.minimum_font_size + ''
|
||||
else:
|
||||
@ -55,7 +56,7 @@ def minimum_font_size(settings):
|
||||
|
||||
|
||||
def zoom_step_size(settings):
|
||||
ans = E.input(max='100', min='1', step='1', type='number', name='zoom_step_size')
|
||||
ans = E.input(max='100', min='10', step='1', type='number', name='zoom_step_size')
|
||||
if jstype(settings.zoom_step_size) is 'number':
|
||||
ans.value = settings.zoom_step_size + ''
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user