View Full Version : Positioning message box

27 Apr 2012, 2:39 PM

My ExtJS app is in an iframe. In some cases, there will be a message for warning or whatever. The issue is that the pop-up is at the center of the iframe instead of the entire window. I tried to set x/y according to doc, and it is not working. Looking through code seems both parameters are ignored. Then tried to listen on render or show and they are not helpful either. So my question is how do I set the position of the message box to the middle of the entire screen? Thanks.

27 Apr 2012, 2:56 PM
This is what I've done before in my apps:

Ext.Msg.alert('Message Title', 'Message').animate({
to: {
x: 0
, y: 0
, duration: 0

27 Apr 2012, 3:31 PM
Thanks for the quick response. Work like a charm, how did you figure this out:)

27 Apr 2012, 3:48 PM
I didn't. Saw someone else do it. :)
Answered I take it? :D