We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c9e15 commit 6ece445Copy full SHA for 6ece445
res/GUI.js
@@ -408,6 +408,14 @@ function imagezoom_size_adjust() {
408
el_img.classList.remove("fullwidth");
409
el_img.classList.add("fullheight");
410
}
411
+
412
+ // when maximizing, there is sometimes a glitch where the image size has a wrong ratio
413
+ let w_img_curr = el_img.clientWidth;
414
+ let h_img_curr = el_img.clientHeight;
415
+ if (Math.abs(w_img/h_img - w_img_curr/h_img_curr) > 0.05) {
416
+ el_img.style.opacity = 0.999;
417
+ setTimeout(() => { el_img.style.opacity = '' }, 50);
418
+ }
419
420
if (window.line_profile_object !== null) {
421
window.line_profile_object.setup(); // will set up size of canvas
0 commit comments