dijit.layout.SplitContainer.beginSizing
dojo.require("dijit.layout.SplitContainer");
defined in dijit/layout/SplitContainer.js
Usage
function (e, i) (view source)
var children = this.getChildren(); this.paneBefore = children[i]; this.paneAfter = children[i+1]; this.isSizing = true; this.sizingSplitter = this.sizers[i]; if(!this.cover){ this.cover = dojo.doc.createElement('div'); this.domNode.appendChild(this.cover); var s = this.cover.style; s.position = 'absolute'; s.zIndex = 1; s.top = 0; s.left = 0; s.width = "100%"; s.height = "100%"; }else{ this.cover.style.zIndex = 1; } this.sizingSplitter.style.zIndex = 2; // TODO: REVISIT - we want MARGIN_BOX and core hasn't exposed that yet (but can't we use it anyway if we pay attention? we do elsewhere.) this.originPos = dojo.coords(children[0].domNode, true); if(this.isHorizontal){ var client = (e.layerX ? e.layerX : e.offsetX); var screen = e.pageX; this.originPos = this.originPos.x; }else{ var client = (e.layerY ? e.layerY : e.offsetY); var screen = e.pageY; this.originPos = this.originPos.y; } this.startPoint = this.lastPoint = screen; this.screenToClientOffset = screen - client; this.dragOffset = this.lastPoint - this.paneBefore.sizeActual - this.originPos - this.paneBefore.position; if(!this.activeSizing){ this._showSizingLine(); } // // attach mouse events // this._ownconnects = []; this._ownconnects.push(dojo.connect(dojo.doc.documentElement, "onmousemove", this, "changeSizing")); this._ownconnects.push(dojo.connect(dojo.doc.documentElement, "onmouseup", this, "endSizing")); dojo.stopEvent(e);
parameter | type | description |
---|---|---|
e | ||
i |