if(!this.grid.autoHeight){ var h = this.domNode.clientHeight; if(!this.hasScrollbar()){ // no scrollbar is rendered h -= dojox.grid.getScrollbarWidth(); } dojox.grid.setStyleHeightPx(this.scrollboxNode, h); }