diff --git a/src/controldock.js b/src/controldock.js index 84b178f5..0ab9e5cc 100644 --- a/src/controldock.js +++ b/src/controldock.js @@ -59,7 +59,9 @@ if( this.element ){ this.element = $.getElement( this.element ); this.element.appendChild( this.container ); - this.element.style.position = 'relative'; + if( $.getElementStyle(this.element).position === 'static' ){ + this.element.style.position = 'relative'; + } this.container.style.width = '100%'; this.container.style.height = '100%'; }