1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default Grids in Tabs not rendering upon tab activation in IE6

    Grids in Tabs not rendering upon tab activation in IE6


    I'm quite certain this was working fine previously with earlier builds... not sure exactly when it broke.

    Still working fine in Firefox, but quirky in IE6.

    For a layout region with multiple tabs, whereby each tab hosts a grid, and all grids are loaded at the same time (i.e. only one grid visible at any one time) - upon switching to another tab, the grid rows are empty.

    The grid rows reappears upon either a container resize or simply moving the mouse cursor over any of the invisible grid records.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Try this and tell me if it works.

    gridpanel.on('activate', function(){
    gridpanel.getEl().repaint();
    });

    let me know if that works.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    Nope, doesn't work.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    As an added measure, I tested with a delayed repaint() as well.
    i.e. only calling repaint() after 5 seconds after the activate event.

    No effect, the grid rows only appear when I move the mouse cursor over the invisible rows.

  5. #5
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    gridpanel.on('activate', function(){
    layout.layout();
    });

    Try that. That's not intended for production use, but I want to know if it has any affect.

  6. #6
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    Yeap, layout.layout() works.

  7. #7
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Hows it perform?

  8. #8
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    It performs ok I suppose, not much noticeable delay.

  9. #9
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    I just did a commit with the latest code. It has the display:none tabs workaround in place (and other stuff). See if that fixes it for you.

    What it does is if the tab item panel has position relative it uses negative positioning instead of display none. This way offsets are still available and grids should render as expected. It may need a little tweaking.

  10. #10
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    I see, interesting workaround.

    Btw, any chance that RC2 will be downloadable soon?

    Haven't had the opportunity to scout around to see which is a good subversion client/add-in to use.

Similar Threads

  1. Tabs and Grids...HELP!
    By edmundfitz in forum Ext 1.x: Help & Discussion
    Replies: 19
    Last Post: 7 Sep 2007, 5:31 AM
  2. Performance Issues with Multiple Grids and Tabs
    By prophet in forum Ext 1.x: Help & Discussion
    Replies: 14
    Last Post: 1 Jun 2007, 3:55 AM
  3. Grids within Tabs
    By kcashishkumar in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 3 Mar 2007, 12:00 AM
  4. Grids in Tabs and grid with both editing and drag and drop
    By glassy in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 19 Nov 2006, 2:42 AM
  5. Multiple Grids with Tabs
    By tik1 in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 7:00 PM

Thread Participants: 3