Results 1 to 4 of 4

Thread: Positioning message box

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    16

    Default Positioning message box

    Hi:

    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.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    This is what I've done before in my apps:

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

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    16

    Default Thanks a bunch

    Thanks for the quick response. Work like a charm, how did you figure this out

  4. #4
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    I didn't. Saw someone else do it.
    Answered I take it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •