dojox.layout.ResizeHandle.postCreate
dojo.require("dojox.layout.ResizeHandle");
defined in dojox/layout/ResizeHandle.js
setup our one major listener upon creation
Usage
function () (view source)
this.connect(this.resizeHandle, "onmousedown", "_beginSizing"); if(!this.activeResize){ // there shall be only a single resize rubberbox that at the top // level so that we can overlay it on anything whenever the user // resizes something. Since there is only one mouse pointer he // can't at once resize multiple things interactively. this._resizeHelper = dijit.byId('dojoxGlobalResizeHelper'); if (!this._resizeHelper){ var tmpNode = document.createElement('div'); tmpNode.style.display = "none"; dojo.body().appendChild(tmpNode); dojo.addClass(tmpNode,this.activeResizeClass); this._resizeHelper = new dojox.layout._ResizeHelper({ id: 'dojoxGlobalResizeHelper'},tmpNode); this._resizeHelper.startup(); } }else{ this.animateSizing = false; } if (!this.minSize) { this.minSize = { w: this.minWidth, h: this.minHeight }; } // should we modify the css for the cursor hover to n-resize nw-resize and w-resize? this._resizeX = this._resizeY = false; switch (this.resizeAxis.toLowerCase()) { case "xy" : this._resizeX = this._resizeY = true; // FIXME: need logic to determine NW or NE class to see // based on which [todo] corner is clicked dojo.addClass(this.resizeHandle,"dojoxResizeNW"); break; case "x" : this._resizeX = true; dojo.addClass(this.resizeHandle,"dojoxResizeW"); break; case "y" : this._resizeY = true; dojo.addClass(this.resizeHandle,"dojoxResizeN"); break; }