diff --git a/src/controldock.js b/src/controldock.js index d7d61600..0ab9e5cc 100644 --- a/src/controldock.js +++ b/src/controldock.js @@ -59,8 +59,7 @@ if( this.element ){ this.element = $.getElement( this.element ); this.element.appendChild( this.container ); - // this.element.style.position = 'relative'; - if(this.element.style.position === 'static'){ + if( $.getElementStyle(this.element).position === 'static' ){ this.element.style.position = 'relative'; } this.container.style.width = '100%'; diff --git a/src/navigator.js b/src/navigator.js index 2be682a8..0665b58d 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -162,7 +162,7 @@ $.Navigator = function( options ){ this.displayRegion.className = 'displayregion'; (function( style, borderWidth ){ - style.position = 'relative'; + style.position = 'relative'; style.top = '0px'; style.left = '0px'; style.fontSize = '0px';