mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Comment tweak
This commit is contained in:
parent
0fddd1a61d
commit
5e24432349
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user