PDA

View Full Version : Window animation glitch when source element is inside a dlg.



ambience
26 Jan 2007, 9:45 AM
When ever I try to launch a window and mark the source element as an element nested in another window (such as a help button in the title bar) the 'zoom' animation is obscured by the source window. However, when ever the new window is closed, the animation works as expected.

Animal
26 Jan 2007, 12:29 PM
When you say "window", you mean BasicDialog right?

Just a shot in the dark, but try calling this: http://www.yui-ext.com/deploy/yui-ext/docs/output/YAHOO.ext.BasicDialog.html#toFront

before showing the dialog.

ambience
26 Jan 2007, 1:10 PM
Added the following lines



YAHOO.extendX(HelpDialog, YAHOO.ext.LayoutDialog, {
...

show: function(){
this.toFront();
HelpDialog.superclass.show.apply(this, arguments);
}
}


Worked like a charm, thanks.