Commit e47a4415 authored by Robin Tissot's avatar Robin Tissot
Browse files

Fixes zoom bug when both source or binarised were hidden, plus one less call to zoom.refresh

parent 5d8f4916
......@@ -57,6 +57,7 @@ $(document).ready(function() {
for (var key in panels) {
panels[key].reset();
}
zoom.refresh();
});
// previous and next buttons
......
......@@ -40,7 +40,5 @@ class BinarizationPanel {
else this.open();
}
reset() {
zoom.refresh();
}
reset() {}
}
......@@ -37,7 +37,5 @@ class SourcePanel {
else this.open();
}
reset() {
zoom.refresh();
}
reset() {}
}
......@@ -138,6 +138,7 @@ class WheelZoom {
refresh() {
let container = this.getVisibleContainer();
if (!container) return;
var target = container.children().first();
this.size = {w:target.width(), h:target.height()};
this.min_scale = this.options.min_scale || Math.min(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment