Add TODO comment about magic number

This commit is contained in:
Ventero 2013-01-25 19:53:06 +01:00
parent 9620272ebb
commit 9b6de523c7

View File

@ -209,6 +209,7 @@ $.extend( $.Navigator.prototype, $.EventHandler.prototype, $.Viewer.prototype, {
style.top = topleft.y + 'px'; style.top = topleft.y + 'px';
style.left = topleft.x + '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;
var height = Math.abs( topleft.y - bottomright.y ) - 3; var height = Math.abs( topleft.y - bottomright.y ) - 3;
// make sure width and height are non-negative so IE doesn't throw // make sure width and height are non-negative so IE doesn't throw