dojox.layout.FloatingPane.startup
dojo.require("dojox.layout.FloatingPane");
defined in dojox/layout/FloatingPane.js
Usage
function () (view source)
if(this._started){ return; } this.inherited(arguments); if(this.resizable){ if(dojo.isIE){ this.canvas.style.overflow = "auto"; }else{ this.containerNode.style.overflow = "auto"; } this._resizeHandle = new dojox.layout.ResizeHandle({ targetId: this.id, resizeAxis: this.resizeAxis },this.resizeHandle); } if(this.dockable){ // FIXME: argh. var tmpName = this.dockTo; if(this.dockTo){ this.dockTo = dijit.byId(this.dockTo); }else{ this.dockTo = dijit.byId('dojoxGlobalFloatingDock'); } if(!this.dockTo){ var tmpId; var tmpNode; // we need to make our dock node, and position it against // .dojoxDockDefault .. this is a lot. either dockto="node" // and fail if node doesn't exist or make the global one // once, and use it on empty OR invalid dockTo="" node? if(tmpName){ tmpId = tmpName; tmpNode = dojo.byId(tmpName); }else{ tmpNode = document.createElement('div'); dojo.body().appendChild(tmpNode); dojo.addClass(tmpNode,"dojoxFloatingDockDefault"); tmpId = 'dojoxGlobalFloatingDock'; } this.dockTo = new dojox.layout.Dock({ id: tmpId, autoPosition: "south" },tmpNode); this.dockTo.startup(); } if((this.domNode.style.display == "none")||(this.domNode.style.visibility == "hidden")){ // If the FP is created dockable and non-visible, start up docked. this.minimize(); } } this.connect(this.focusNode,"onmousedown","bringToTop"); this.connect(this.domNode, "onmousedown","bringToTop"); // Initial resize to give child the opportunity to lay itself out this.resize(dojo.coords(this.domNode)); this._started = true;