Changeset 12498

Show
Ignore:
Timestamp:
02/18/08 13:33:51 (11 months ago)
Author:
peller
Message:

resize only those children impacted by a relayout. move another style attribute to CSS. Refs #4117 !strict

Location:
dijit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/layout/BorderContainer.js

    r12497 r12498  
    6565                if(region){ 
    6666                        dojo.addClass(child.domNode, "dijitBorderContainerPane"); 
    67                         child.domNode.style.position = "absolute"; //FIXME: for some reason, setting this in CSS isn't good enough? 
    6867 
    6968                        var ltr = dojo._isBodyLtr(); 
     
    272271don't do that.  See #3399, #2678, #3624 and #2955, #1988 
    273272*/ 
     273 
     274                var resizeList = {}; 
     275                if(changedRegion){ 
     276                        resizeList[changedRegion] = resizeList.center = true; 
     277                        if(/top|bottom/.test(changedRegion) && this.design != "sidebar"){ 
     278                                resizeList.left = resizeList.right = true; 
     279                        }else if(/left|right/.test(changedRegion) && this.design == "sidebar"){ 
     280                                resizeList.top = resizeList.bottom = true; 
     281                        } 
     282                } 
     283 
    274284                dojo.forEach(this.getChildren(), function(child){ 
    275 //PERF: don't have to resize children if(changedRegion) 
    276                         if(child.resize){ 
     285                        if(child.resize && (!changedRegion || child.region in resizeList)){ 
    277286//                              console.log(this.id, ": resizing child id=" + child.id + " (region=" + child.region + "), style before resize is " + 
    278287//                                                                       "{ t: " + child.domNode.style.top + 
  • dijit/trunk/themes/dijit.css

    r12497 r12498  
    634634} 
    635635 
     636.dijitBorderContainerPane { 
     637        position:absolute; 
     638} 
     639 
    636640/* SplitContainer 
    637641