bleed and nothing else

master
km0 3 years ago
parent df36945c64
commit 1f817a514a

File diff suppressed because one or more lines are too long

@ -1 +1 @@
Subproject commit a84e5b4bc23c388e6c92181724f7315345188485 Subproject commit e2ddf3c3eb15ec688cdbab0edf2dd5802faeeab7

@ -5,10 +5,13 @@ class BleedHandler extends Paged.Handler {
afterPageLayout(pageFragment, page) { afterPageLayout(pageFragment, page) {
let img = pageFragment.querySelector("img"); let img = pageFragment.querySelector("img");
let bar = pageFragment.querySelector('.progress-bar')
if (img) { if (img) {
moveImage(img); moveImage(img);
} else { }
let bar = pageFragment.querySelector('.progress-bar')
else if (bar){
progressBar(bar) progressBar(bar)
} }
} }
@ -28,10 +31,6 @@ function moveImage(img) {
function progressBar(bar){ function progressBar(bar){
let width = bar.clientWidth let width = bar.clientWidth
let height = bar.clientHeight let height = bar.clientHeight
console.log(bar, width, height)
let parent = bar.closest(".pagedjs_sheet"); let parent = bar.closest(".pagedjs_sheet");
parent.prepend(bar); parent.prepend(bar);

Loading…
Cancel
Save