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

Loading…
Cancel
Save