Here is a question for dijit dialog experts:
I have a requirement for a dialog that should be draggable
and constrained to remain fully visible in the current window.
With a regular dialog,when you drag the dialog out of the window via the RIGHT
or the BOTTOM side
suddenly the content below scrolls in the opposite direction.
You can go to
http://docs.dojocampus.org/dijit/Dialoganc check out the dialog example and play around with dragging the dialog out of
the window.
I used to have a patch to avoid this when I was using dojo version 1.1.0
that looks like:
dialog.js:
_setup: function(){
// summary:
// stuff we need to do before showing the Dialog for the first
// time (but we defer it until right beforehand, for
// performance reasons)
if(this.titleBar){
var v = dijit.getViewport();
var params = {
handle: this.titleBar,
box: v,
within: true,
constraints: function(){return v;}
};
this._moveable = new
dojo.dnd.move.constrainedMoveable(this.domNode, params);
}
etc..
This works perfect withi dojo 1.1.0 under both FFox 3.0.12 and IE7
but under 1.3.2 it only works with FFox.
With IE7 I get the normal (ugly) behavior where the window content gets scrolled
in the opposite direction (LEFT or UP)
Thanks,
Horst
_______________________________________________
FAQ:
http://dojotoolkit.org/support/faqBook:
http://docs.dojocampus.orgDojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest