mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Special case zero font size when calculating columns per screen in paged mode
This commit is contained in:
parent
ce49025770
commit
603dcc777e
@ -152,6 +152,9 @@ def cps_by_em_size():
|
||||
ans = cps_by_em_size.ans
|
||||
fs = window.getComputedStyle(document.body).fontSize
|
||||
if not ans or cps_by_em_size.at_font_size is not fs:
|
||||
if fs is 0:
|
||||
ans = cps_by_em_size.ans = 16
|
||||
else:
|
||||
d = document.createElement('span')
|
||||
d.style.position = 'absolute'
|
||||
d.style.visibility = 'hidden'
|
||||
|
Loading…
x
Reference in New Issue
Block a user