Changeset 7453
- Timestamp:
- 02/26/07 01:37:47 (23 months ago)
- Files:
-
- 1 modified
-
trunk/src/widget/SplitContainer.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/widget/SplitContainer.js
r7313 r7453 62 62 // to keep other combined css classes from inadvertantly making the overflow visible 63 63 if (dojo.render.html.moz) { 64 this.domNode.style.overflow = '-moz-scrollbars-none'; // hidden doesn't work65 } 66 64 this.domNode.style.overflow = '-moz-scrollbars-none'; // hidden doesn't work 65 } 66 67 67 var content = dojo.html.getContentBox(this.domNode); 68 68 this.paneWidth = content.width; … … 75 75 this.paneHeight = content.height; 76 76 this._layoutPanels(); 77 if(this.cover){ 78 this._updateCoverSize(); 79 } 77 80 }, 78 81 … … 340 343 }, 341 344 345 _updateCoverSize: function(){ 346 this.cover.style.width=this.paneWidth+"px"; 347 this.cover.style.height=this.paneHeight+"px"; 348 }, 342 349 beginSizing: function(e, i){ 343 350 this.paneBefore = this.children[i]; … … 346 353 this.isSizing = true; 347 354 this.sizingSplitter = this.sizers[i]; 355 356 if(!this.cover){ 357 this.cover = dojo.doc().createElement('div'); 358 this.domNode.appendChild(this.cover); 359 var s = this.cover.style; 360 s.position='absolute'; 361 s.zIndex=1; 362 s.top=0; 363 s.left=0; 364 this._updateCoverSize(); 365 }else{ 366 this.cover.style.display=""; 367 } 368 this.sizingSplitter.style.zIndex=2; 369 348 370 this.originPos = dojo.html.getAbsolutePosition(this.children[0].domNode, true, dojo.html.boxSizing.MARGIN_BOX); 349 371 if (this.isHorizontal){ … … 386 408 387 409 endSizing: function(e){ 388 410 if(this.cover){ 411 this.cover.style.display='none'; 412 } 389 413 if (!this.activeSizing){ 390 414 this._hideSizingLine();