Another way I do this (it doesn't matter, because I override the private method, but it gives me the flexibility I want):
var d = new Dialog({ title:"Your Dialog", _position:function(){ if(this.refNode){ p = Geo.position(this.refNode); Style.set(this.domNode,{left:px + "px", top:py + "px"}); } }, showAround:function(node){ this.refNode = node; this.show(); } }); d.showAround(dojo.byId("someNode"));
This example uses "dojo / dom-style" as a style and "dojo / dom-geometry" as a Geo.
source share