Fix glyph clipping in WebKit

See https://github.com/johnfactotum/foliate/issues/177
This commit is contained in:
John Factotum
2023-02-21 08:08:15 +00:00
committed by GitHub
parent b8049952bf
commit dee64c19bb
+2
View File
@@ -236,6 +236,8 @@ class View {
position: 'static', border: '0', margin: '0',
maxHeight: 'none', maxWidth: 'none',
minHeight: 'none', minWidth: 'none',
// fix glyph clipping in WebKit
webkitLineBoxContain: 'block glyphs replaced',
})
Object.assign(doc.body.style, {
maxHeight: 'none',