mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Merge pull request #222 from nhart/master
Use style attributes when storing the previous elment size instead of th...
This commit is contained in:
commit
c25dc6e268
@ -666,7 +666,8 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
|
||||
this.previousBody = [];
|
||||
THIS[ this.hash ].prevElementParent = this.element.parentNode;
|
||||
THIS[ this.hash ].prevNextSibling = this.element.nextSibling;
|
||||
THIS[ this.hash ].prevElementSize = $.getElementSize( this.element );
|
||||
THIS[ this.hash ].prevElementWidth = this.element.style.width;
|
||||
THIS[ this.hash ].prevElementHeight = this.element.style.height;
|
||||
nodes = body.childNodes.length;
|
||||
for ( i = 0; i < nodes; i ++ ){
|
||||
this.previousBody.push( body.childNodes[ 0 ] );
|
||||
@ -783,8 +784,8 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
|
||||
//this.container.style.top = 'auto';
|
||||
}
|
||||
|
||||
this.element.style.height = THIS[ this.hash ].prevElementSize.y + 'px';
|
||||
this.element.style.width = THIS[ this.hash ].prevElementSize.x + 'px';
|
||||
this.element.style.width = THIS[ this.hash ].prevElementWidth;
|
||||
this.element.style.height = THIS[ this.hash ].prevElementHeight;
|
||||
|
||||
THIS[ this.hash ].fullPage = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user