mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Fixed problem with build complaining about variable name reuse.
This commit is contained in:
parent
1c14f5cc94
commit
57c06a9a19
@ -2824,8 +2824,9 @@ function updateOnce( viewer ) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var containerSize;
|
||||||
if ( viewer.autoResize ) {
|
if ( viewer.autoResize ) {
|
||||||
var containerSize = _getSafeElemSize( viewer.container );
|
containerSize = _getSafeElemSize( viewer.container );
|
||||||
if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) {
|
if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) {
|
||||||
// maintain image position
|
// maintain image position
|
||||||
var oldBounds = viewer.viewport.getBounds();
|
var oldBounds = viewer.viewport.getBounds();
|
||||||
@ -2836,7 +2837,7 @@ function updateOnce( viewer ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var containerSize = _getSafeElemSize( viewer.container );
|
containerSize = _getSafeElemSize( viewer.container );
|
||||||
if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) {
|
if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) {
|
||||||
var prevContainerSize = THIS[ viewer.hash ].prevContainerSize;
|
var prevContainerSize = THIS[ viewer.hash ].prevContainerSize;
|
||||||
var bounds = viewer.viewport.getBounds(true);
|
var bounds = viewer.viewport.getBounds(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user