1. #1
    Ext User
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    38
    Vote Rating
    0
    staffan is on a distinguished road

      0  

    Default [CLOSED] Info message not shown

    [CLOSED] Info message not shown


    If you make two com.extjs.gxt.ui.client.widget.Info messages, the first by calling:
    Code:
    new Info().show(conf);
    and second by calling

    Code:
    Info.display(conf);
    (Were conf is a InfoConfig parameter object)

    Then the last message will never be shown. If you call the last message one more time, it will however be shown.

    This is gxt 1.1.3

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    First approach is wrong. Second approach is the way to go. Closed

  3. #3
    Ext User
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    38
    Vote Rating
    0
    staffan is on a distinguished road

      0  

    Default need a reference to the Info instance

    need a reference to the Info instance


    But I need to be able to explicty close the Info when I want rather then wait for the time specified in InfoConfig.display. The only way I figured I do this is be calling .hide() on the Info-message instance. In order to get a reference to the instance I need to make the call like the first example. Or is there an other way?

    A possibility is to change all my other calls (which are like the second approach) to be like the first one. Ok, or bad idea?

    The
    Code:
    Info.display(conf);
    "returns" void, so I don't see a way using that and still be able to call hide()

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    If you want to close it than you also need to position it correctly. As the Info isnt on the stack if you show it with
    Code:
    new Info().show(conf);
    It gets position not in the correct order. It is shown, but not where you expect it.

  5. #5
    Ext User
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    38
    Vote Rating
    0
    staffan is on a distinguished road

      0  

    Default


    The strange thing is that it isn't the new Info().show() that disapears, it's the other Info.display() that is not showing..

    According to your explination it would be the other way around, no?

  6. #6
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Well i just tested your code with 1.2.3 and it looks like the behaviour was already fixed. So also self create Infos get on the stack.

Thread Participants: 1