mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-28 19:35:10 +03:00
syntax fixed and if statement amended
This commit is contained in:
parent
9b051f55de
commit
ed49d46237
2 changed files with 2 additions and 3 deletions
|
@ -59,8 +59,7 @@
|
||||||
if( this.element ){
|
if( this.element ){
|
||||||
this.element = $.getElement( this.element );
|
this.element = $.getElement( this.element );
|
||||||
this.element.appendChild( this.container );
|
this.element.appendChild( this.container );
|
||||||
// this.element.style.position = 'relative';
|
if( $.getElementStyle(this.element).position === 'static' ){
|
||||||
if(this.element.style.position === 'static'){
|
|
||||||
this.element.style.position = 'relative';
|
this.element.style.position = 'relative';
|
||||||
}
|
}
|
||||||
this.container.style.width = '100%';
|
this.container.style.width = '100%';
|
||||||
|
|
|
@ -162,7 +162,7 @@ $.Navigator = function( options ){
|
||||||
this.displayRegion.className = 'displayregion';
|
this.displayRegion.className = 'displayregion';
|
||||||
|
|
||||||
(function( style, borderWidth ){
|
(function( style, borderWidth ){
|
||||||
style.position = 'relative';
|
style.position = 'relative';
|
||||||
style.top = '0px';
|
style.top = '0px';
|
||||||
style.left = '0px';
|
style.left = '0px';
|
||||||
style.fontSize = '0px';
|
style.fontSize = '0px';
|
||||||
|
|
Loading…
Add table
Reference in a new issue