Results 1 to 7 of 7

Thread: Show event not fired when the panel is first shown on the screen

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    81
    Vote Rating
    0
      0  

    Default Show event not fired when the panel is first shown on the screen

    Hi,


    When we create a panel we add this:

    listeners: {
    show: function shown(me, eOpts) {
    alert("shown");
    }
    },

    However, the event is not fired the first time the panel is created & shown on the screen, this is critical for us, because we need to initiate setup events, especially after the vidget is shown on the screen

    The way to overcome this is to call hide and show methods right after "new Ext.Panel" , however this creates its own critical bug (drag issues - opening another bug for that)

    I was hoping it will be solved in the latest 2.0.1.1 , but the bug is still there


    Omer Paran
    Co-Founder & CTO
    attracTV
    Mobile IL : +972 50-202-4804
    omer.paran@attarctv.com

    web site: www.attractv.com
    twitter: http://twitter.com/attractv

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      1  

    Default

    Have you tried to use the "painted" event? This event is better for the usecase you are looking for probably.

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    81
    Vote Rating
    0
      0  

    Default already tried

    the Painted event is also not being called the first time the Vidget is shown on the screen

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    I run this code and the event is fired for me:
    Code:
    Ext.Viewport.add({
    listeners: {
    painted :function() {
    console.log("test");
    }
    }
    });
    
    How does the code exactly look like, that you are running?

  5. #5
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    81
    Vote Rating
    0
      0  

    Default More Info

    OK - I further tested what you wrote:

    We use Panel in two ways, draggable and non-draggable

    I know it will sound weird to you, but painted is NOT fired at all when it is in draggable version and it is fired INDEED when the panel can't be dragged

    Your sample was not a panel , but it was not draggable - maybe this is why it worked for you and it is not working for us when we open panel on the screen which are draggable

    We also DON'T use the fullscreen option in any panel

  6. #6
    Sencha User
    Join Date
    Sep 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Re

    I have similar issue. The show and painted events do fire when I browse in chrome directly on index.html from my development folder but not working after package or production build. Could anyone shed some light on this?

Posting Permissions

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