From 5e2443234909bac42d347e19ebb94696af5bd134 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Mon, 28 Jan 2013 10:11:14 -0800 Subject: [PATCH] Comment tweak --- src/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigator.js b/src/navigator.js index 20d77882..c038bd3f 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -209,8 +209,8 @@ $.extend( $.Navigator.prototype, $.EventHandler.prototype, $.Viewer.prototype, { style.top = topleft.y + 'px'; style.left = topleft.x + 'px'; - // TODO: What's this magic number mean? - var width = Math.abs( topleft.x - bottomright.x ) - 3; + + var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What's this magic number mean? var height = Math.abs( topleft.y - bottomright.y ) - 3; // make sure width and height are non-negative so IE doesn't throw style.width = Math.max( width, 0 ) + 'px';