dojox.GridView.doscroll
dojo.require("dojox.grid._grid.view");
defined in dojox/grid/_grid/view.js
Usage
function (inEvent) (view source)
var isLtr = dojo._isBodyLtr(); if(this.firstScroll < 2){ if((!isLtr && this.firstScroll == 1) || (isLtr && this.firstScroll == 0)){ var s = dojo.marginBox(this.headerNodeContainer); if(dojo.isIE){ this.headerNodeContainer.style.width = s.w + this.getScrollbarWidth() + 'px'; }else if(dojo.isMoz){ //TODO currently only for FF, not sure for safari and opera this.headerNodeContainer.style.width = s.w - this.getScrollbarWidth() + 'px'; //this.headerNodeContainer.style.width = s.w + 'px'; //set scroll to right in FF if(isLtr){ this.scrollboxNode.scrollLeft = this.scrollboxNode.scrollWidth - this.scrollboxNode.clientWidth; }else{ this.scrollboxNode.scrollLeft = this.scrollboxNode.clientWidth - this.scrollboxNode.scrollWidth; } } } this.firstScroll++; } this.headerNode.scrollLeft = this.scrollboxNode.scrollLeft; // 'lastTop' is a semaphore to prevent feedback-loop with setScrollTop below var top = this.scrollboxNode.scrollTop; if(top != this.lastTop){ this.grid.scrollTo(top); }
parameter | type | description |
---|---|---|
inEvent |