mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
+3
-1
@@ -278,6 +278,8 @@ class View {
|
|||||||
this.#element.style[side] = `${expandedSize}px`
|
this.#element.style[side] = `${expandedSize}px`
|
||||||
this.#iframe.style[otherSide] = '100%'
|
this.#iframe.style[otherSide] = '100%'
|
||||||
this.#element.style[otherSide] = '100%'
|
this.#element.style[otherSide] = '100%'
|
||||||
|
if (this.document)
|
||||||
|
this.document.documentElement.style[side] = `${expandedSize}px`
|
||||||
if (this.#overlayer) {
|
if (this.#overlayer) {
|
||||||
this.#overlayer.element.style.margin = '0'
|
this.#overlayer.element.style.margin = '0'
|
||||||
this.#overlayer.element.style[side] = `${expandedSize}px`
|
this.#overlayer.element.style[side] = `${expandedSize}px`
|
||||||
@@ -423,7 +425,7 @@ export class Paginator {
|
|||||||
return Math.floor(((this.start + this.end) / 2) / this.size)
|
return Math.floor(((this.start + this.end) / 2) / this.size)
|
||||||
}
|
}
|
||||||
get pages() {
|
get pages() {
|
||||||
return this.viewSize / this.size
|
return Math.round(this.viewSize / this.size)
|
||||||
}
|
}
|
||||||
// allows one to process rects as if they were LTR and horizontal
|
// allows one to process rects as if they were LTR and horizontal
|
||||||
#getRectMapper() {
|
#getRectMapper() {
|
||||||
|
|||||||
Reference in New Issue
Block a user