diff --git a/src/pyj/read_book/prefs/layout.pyj b/src/pyj/read_book/prefs/layout.pyj index 74e4b42af0..8af10a1023 100644 --- a/src/pyj/read_book/prefs/layout.pyj +++ b/src/pyj/read_book/prefs/layout.pyj @@ -55,7 +55,7 @@ def create_layout_panel(container): E.tr(E.td(_('In landscape orientation:')), E.td(E.input(type='number', name='landscape', min='0', step='1', max='20', value=str(cps.landscape)))), )) - sec(_('Change the maximum screen area used to display text. A value of zero means that all screen area is used.')) + sec(_('Change the maximum screen area used to display text. A value of zero means that all available screen area is used.')) container.appendChild(E.table(style='margin: 1ex 1rem', id=TEXT_AREA, E.tr(E.td(_('Max. width:')), E.td(E.input(type='number', name='width', min='0', step='10', value=str(sd.get('max_text_width'))))), E.tr(E.td(_('Max. height:')), E.td(E.input(type='number', name='height', min='0', step='10', value=str(sd.get('max_text_height'))))), @@ -96,7 +96,7 @@ def commit_layout(onchange, container): was_changed = True for which in ('width', 'height'): try: - val = int(element(TEXT_AREA, 'input[name={}]'.format(which))) + val = int(element(TEXT_AREA, 'input[name={}]'.format(which)).value) except: continue if val is not sd.get('max_text_' + which):