mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-18 08:31:00 +00:00
Merge c07bd66bf0
into ccbef38297
This commit is contained in:
commit
70f8445ad9
1 changed files with 3 additions and 2 deletions
|
@ -711,8 +711,9 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||
element = $.getElement( element );
|
||||
|
||||
return new $.Point(
|
||||
element.clientWidth,
|
||||
element.clientHeight
|
||||
// By refusing to return 0 for either width or height, later operations do not resolve to NaN.
|
||||
(element.clientWidth === 0 ? 1 : element.clientWidth),
|
||||
(element.clientHeight === 0 ? 1 : element.clientHeight)
|
||||
);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue