This commit is contained in:
ViratSr 2023-08-16 00:10:55 +05:30
parent b15ba75551
commit 9b051f55de
2 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,10 @@
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(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%';
this.container.style.height = '100%'; this.container.style.height = '100%';
} }

View File

@ -162,7 +162,7 @@ $.Navigator = function( options ){
this.displayRegion.className = 'displayregion'; this.displayRegion.className = 'displayregion';
(function( style, borderWidth ){ (function( style, borderWidth ){
if (style.position === 'static') { style.position = 'relative'; } style.position = 'relative';
style.top = '0px'; style.top = '0px';
style.left = '0px'; style.left = '0px';
style.fontSize = '0px'; style.fontSize = '0px';