From 84dbc3abff595a4781169bdc6945546cb69bff7f Mon Sep 17 00:00:00 2001 From: im-mi Date: Thu, 1 Sep 2016 22:48:33 -0400 Subject: [PATCH] Re-apply zoom upon window resize --- ext/handle_pixel/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/handle_pixel/script.js b/ext/handle_pixel/script.js index 1857c178..16faa878 100644 --- a/ext/handle_pixel/script.js +++ b/ext/handle_pixel/script.js @@ -27,6 +27,11 @@ $(function() { $(".shm-zoomer").change(function(e) { zoom(this.options[this.selectedIndex].value); }); + $(window).resize(function(e) { + $(".shm-zoomer").each(function (e) { + zoom(this.options[this.selectedIndex].value) + }); + }); $("img.shm-main-image").click(function(e) { switch(Cookies.get("ui-image-zoom")) {