Changeset 14040
- Timestamp:
- 06/17/08 15:36:58 (5 months ago)
- Location:
- dojox/trunk/grid
- Files:
-
- 6 modified
-
resources/Grid.css (modified) (1 diff)
-
resources/nihiloGrid.css (modified) (1 diff)
-
resources/soriaGrid.css (modified) (1 diff)
-
resources/tundraGrid.css (modified) (1 diff)
-
_View.js (modified) (3 diffs)
-
_ViewManager.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/grid/resources/Grid.css
r13997 r14040 87 87 .dojoxGrid-scrollbox { 88 88 position: relative; 89 overflow: scroll;89 overflow: auto; 90 90 background-color: white; 91 91 width: 100%; -
dojox/trunk/grid/resources/nihiloGrid.css
r13633 r14040 91 91 .nihilo .dojoxGrid-scrollbox { 92 92 position: relative; 93 overflow: scroll;93 overflow: auto; 94 94 background-color: #fefefe; 95 95 width: 100%; -
dojox/trunk/grid/resources/soriaGrid.css
r13633 r14040 91 91 .soria .dojoxGrid-scrollbox { 92 92 position: relative; 93 overflow: scroll;93 overflow: auto; 94 94 background-color: #fefefe; 95 95 width: 100%; -
dojox/trunk/grid/resources/tundraGrid.css
r13691 r14040 80 80 .tundra .dojoxGrid-scrollbox { 81 81 position: relative; 82 overflow: scroll;82 overflow: auto; 83 83 background-color: #fefefe; 84 84 width: 100%; -
dojox/trunk/grid/_View.js
r14030 r14040 739 739 740 740 getScrollbarWidth: function(){ 741 return (this.noscroll ? 0 : dojox.html.metrics.getScrollbar().w); // Integer741 return (this.noscroll || !this.hasVScrollbar() ? 0 : dojox.html.metrics.getScrollbar().w); // Integer 742 742 }, 743 743 … … 851 851 }, 852 852 853 hasScrollbar: function(){ 854 return (this.scrollboxNode.clientHeight != this.scrollboxNode.offsetHeight); // Boolean 855 }, 856 853 hasHScrollbar: function(reset){ 854 if(this._hasHScroll == undefined || reset){ 855 this._hasHScroll = (this.scrollboxNode.offsetWidth < this.contentNode.offsetWidth); 856 } 857 return this._hasHScroll; // Boolean 858 }, 859 860 hasVScrollbar: function(reset){ 861 if(this._hasVScroll == undefined || reset){ 862 this._hasVScroll = (this.scrollboxNode.offsetHeight < this.contentNode.offsetHeight); 863 } 864 return this._hasVScroll; // Boolean 865 }, 866 857 867 adaptHeight: function(){ 858 868 if(!this.grid.autoHeight){ 859 869 var h = this.domNode.clientHeight; 860 if(!this.hasScrollbar()){ // no scrollbar is rendered861 h -= dojox.html.metrics.getScrollbar().w;862 }863 870 dojox.grid.util.setStyleHeightPx(this.scrollboxNode, h); 864 871 } 872 this.hasVScrollbar(true); 865 873 }, 866 874 … … 880 888 this._removingColumn = false; 881 889 } 882 883 890 var cn = this.contentNode; 884 cn.style.width = '';885 cn.offsetWidth;886 891 cn.style.width = w; 892 this.hasHScrollbar(true); 887 893 }, 888 894 -
dojox/trunk/grid/_ViewManager.js
r13545 r14040 263 263 // summary: Returns the first grid view with a scroll bar 264 264 for(var i=0, v; (v=this.views[i]); i++){ 265 if(v.has Scrollbar()){265 if(v.hasHScrollbar() || v.hasVScrollbar()){ 266 266 return v; 267 267 }