Changeset 12796
- Timestamp:
- 02/29/08 19:29:54 (11 months ago)
- Location:
- dijit/trunk/layout
- Files:
-
- 2 modified
-
StackContainer.js (modified) (1 diff)
-
TabContainer.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/layout/StackContainer.js
r12792 r12796 360 360 // TODO: this is a bit redundant with forward, back api in StackContainer 361 361 adjacent: function(/*Boolean*/ forward){ 362 if(!this.isLeftToRight() ){ forward = !forward; }362 if(!this.isLeftToRight() && (!this.tabPosition || /top|bottom/.test(this.tabPosition))){ forward = !forward; } 363 363 // find currently focused button in children array 364 364 var children = this.getChildren(); -
dijit/trunk/layout/TabContainer.js
r12795 r12796 140 140 141 141 _rectifyRtlTabList: function(){ 142 //Summa y: Rectify the length of all tabs in rtl, otherwise the tab lengths are different in IE142 //Summary: Rectify the length of all tabs in rtl, otherwise the tab lengths are different in IE 143 143 if(0 >= this.tabPosition.indexOf('-h')){ return; } 144 144 if(!this.pane2button){ return; } 145 145 146 var maxLen = 0; 146 //this.tablist.pane2button is not array, so we can't use dojo.forEach here147 //simplily get the max length among the tabs148 147 for(var pane in this.pane2button){ 149 var len = dojo.marginBox(this.pane2button[pane].innerDiv).w; 150 maxLen = maxLen > len ? maxLen : len; 148 maxLen = Math.max(maxLen, dojo.marginBox(this.pane2button[pane].innerDiv).w); 151 149 } 152 150 //unify the length of all the tabs