From 7d3a527af54642c43a39532c3cfbbaa4b06eb989 Mon Sep 17 00:00:00 2001 From: Nick Hynes Date: Tue, 3 Jan 2017 09:27:58 -0500 Subject: [PATCH] set this.(width|height) --- static/panes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/panes.js b/static/panes.js index ad708cd..32a1051 100644 --- a/static/panes.js +++ b/static/panes.js @@ -402,6 +402,8 @@ ImagePane.prototype = extend(Object.create(Pane.prototype), { c.style.top = ''; c.style.width =''; c.style.height = ''; + this.width = c.naturalWidth; + this.height = c.naturalHeight; this.resizeLabels(); this.scale = Math.min(el.offsetWidth / c.naturalWidth, el.offsetHeight / c.naturalHeight); },