mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 07:06:10 +03:00
Merge branch 'master' of github.com:thatcher/openseadragon
This commit is contained in:
commit
808354dd6f
@ -4723,7 +4723,7 @@ function onNext(){
|
|||||||
* The Navigator provides a small view of the current image as fixed
|
* The Navigator provides a small view of the current image as fixed
|
||||||
* while representing the viewport as a moving box serving as a frame
|
* while representing the viewport as a moving box serving as a frame
|
||||||
* of reference in the larger viewport as to which portion of the image
|
* of reference in the larger viewport as to which portion of the image
|
||||||
* is currently being examined. The navigators viewport can be interacted
|
* is currently being examined. The navigator's viewport can be interacted
|
||||||
* with using the keyboard or the mouse.
|
* with using the keyboard or the mouse.
|
||||||
* @class
|
* @class
|
||||||
* @name OpenSeadragon.Navigator
|
* @name OpenSeadragon.Navigator
|
||||||
@ -4790,7 +4790,7 @@ $.Navigator = function( options ){
|
|||||||
style.background = 'transparent';
|
style.background = 'transparent';
|
||||||
|
|
||||||
// We use square bracket notation on the statement below, because float is a keyword.
|
// We use square bracket notation on the statement below, because float is a keyword.
|
||||||
// This is important for the Google Closure compliler, if nothing else.
|
// This is important for the Google Closure compiler, if nothing else.
|
||||||
/*jshint sub:true */
|
/*jshint sub:true */
|
||||||
style['float'] = 'left'; //Webkit
|
style['float'] = 'left'; //Webkit
|
||||||
|
|
||||||
@ -4938,7 +4938,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';
|
||||||
|
|
||||||
var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What's this magic number mean?
|
var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What does this magic number mean?
|
||||||
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
|
||||||
style.width = Math.max( width, 0 ) + 'px';
|
style.width = Math.max( width, 0 ) + 'px';
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* The Navigator provides a small view of the current image as fixed
|
* The Navigator provides a small view of the current image as fixed
|
||||||
* while representing the viewport as a moving box serving as a frame
|
* while representing the viewport as a moving box serving as a frame
|
||||||
* of reference in the larger viewport as to which portion of the image
|
* of reference in the larger viewport as to which portion of the image
|
||||||
* is currently being examined. The navigators viewport can be interacted
|
* is currently being examined. The navigator's viewport can be interacted
|
||||||
* with using the keyboard or the mouse.
|
* with using the keyboard or the mouse.
|
||||||
* @class
|
* @class
|
||||||
* @name OpenSeadragon.Navigator
|
* @name OpenSeadragon.Navigator
|
||||||
@ -73,7 +73,7 @@ $.Navigator = function( options ){
|
|||||||
style.background = 'transparent';
|
style.background = 'transparent';
|
||||||
|
|
||||||
// We use square bracket notation on the statement below, because float is a keyword.
|
// We use square bracket notation on the statement below, because float is a keyword.
|
||||||
// This is important for the Google Closure compliler, if nothing else.
|
// This is important for the Google Closure compiler, if nothing else.
|
||||||
/*jshint sub:true */
|
/*jshint sub:true */
|
||||||
style['float'] = 'left'; //Webkit
|
style['float'] = 'left'; //Webkit
|
||||||
|
|
||||||
@ -221,7 +221,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';
|
||||||
|
|
||||||
var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What's this magic number mean?
|
var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What does this magic number mean?
|
||||||
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
|
||||||
style.width = Math.max( width, 0 ) + 'px';
|
style.width = Math.max( width, 0 ) + 'px';
|
||||||
|
Loading…
Reference in New Issue
Block a user