mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
FXL: fix overflowing
Which for some reason only happens in Firefox
This commit is contained in:
@@ -114,6 +114,7 @@ class Container {
|
|||||||
Object.assign(element.style, {
|
Object.assign(element.style, {
|
||||||
width: `${(width ?? blankWidth) * scale}px`,
|
width: `${(width ?? blankWidth) * scale}px`,
|
||||||
height: `${(height ?? blankHeight) * scale}px`,
|
height: `${(height ?? blankHeight) * scale}px`,
|
||||||
|
overflow: 'hidden',
|
||||||
display: 'block',
|
display: 'block',
|
||||||
})
|
})
|
||||||
if (portrait && frame !== target) {
|
if (portrait && frame !== target) {
|
||||||
|
|||||||
Reference in New Issue
Block a user