dojox.widget.Toaster._placeClip
dojo.require("dojox.widget.Toaster");
defined in dojox/widget/Toaster.js
Usage
function () (view source)
var view = dijit.getViewport(); var nodeSize = dojo.marginBox(this.containerNode); var style = this.clipNode.style; // sets up the size of the clipping node style.height = nodeSize.h+"px"; style.width = nodeSize.w+"px"; // sets up the position of the clipping node var pd = this.positionDirection; if(pd.match(/^t/)){ style.top = view.t+"px"; }else if(pd.match(/^b/)){ style.top = (view.h - nodeSize.h - 2 + view.t)+"px"; } if(pd.match(/^[tb]r-/|>)){ style.left = (view.w - nodeSize.w - 1 - view.l)+"px"; }else if(pd.match(/^[tb]l-/|>)){ style.left = 0 + "px"; } style.clip = "rect(0px, " + nodeSize.w + "px, " + nodeSize.h + "px, 0px)"; if(dojo.isIE){ if(!this.bgIframe){ this.clipNode.id = "__dojoXToaster_"+this._uniqueId++; this.bgIframe = new dijit.BackgroundIframe(this.clipNode); } var iframe = this.bgIframe.iframe; if(iframe){ iframe.style.display="block"; } }