Results 1 to 6 of 6

Thread: Grid vertical scroll bar problem during expand/collapse of a node

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    8

    Default Grid vertical scroll bar problem during expand/collapse of a node

    Hi again,

    I found a problem on vertical scroll bar position preservation. In my application, I have a grid inside the center panel of a viewport. Due to several rendering issues (especially on IE), I have to disable the buffered rendering on the grid. Unfortunately, when a grid is inside a viewport and the buffered rendering is disabled, when you expand/collapse a node, the vertical scroll bar is moved to top (in all other cases it works). You can reproduce this through the following fiddle (see the comments for details):

    https://fiddle.sencha.com/#view/editor&fiddle/2848


    Tested on ExtJS 6.5.1.345 and 6.5.2.463 classic.

    N.B.: My workaround for now is to get rid of the viewport, but this may be a problem in future...

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    I think the key is "Due to several rendering issues... I have to disable the buffered rendering"

    That should not be the case.

    It works here: https://fiddle.sencha.com/#view/editor&fiddle/286b

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Posts
    8

    Default

    Hi,

    I have to rectify the issue (fiddle updated): the scroll bar return to top when the grid is put inside a panel/container (not only a viewport). If you render the grid directly to the document body, it works regardless the buffered rendering is enabled or not.
    The grid I use in my application is by far more complex than this and in my case the buffered rendering make many problems in IE (stop rendering, blank page, etc), but this is another issue...

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    When you say "put inside", it worries me a little. Why would it be put inside a panel?

  5. #5
    Sencha User
    Join Date
    Aug 2013
    Posts
    8

    Default

    In my application, the center region of the viewport is a panel. Inside this panel there is all the elements, included the grid.

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    It's to do with locking. That's the extra layer of complexity on top of this. That's where the bug lies. In the distribution of the "replace" event (Expand is remove one row and add several, collapse is remove several and add one, and that fires a "replace" event) to the LockingView, and how that then causes its two views to react.

    Too deep for a quick fix. It will have to be a 6.5.3 thing

Similar Threads

  1. [FIXED] Expand/collapse tree node will set normal view scroll to 0
    By ragzovskii in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 18 Jan 2018, 2:28 AM
  2. Replies: 1
    Last Post: 20 Jun 2017, 7:52 AM
  3. Replies: 0
    Last Post: 9 Jan 2012, 9:31 AM
  4. Vertical expand/collapse of panel
    By sinus in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 18 Feb 2010, 8:32 AM
  5. Grid: vertical expand/collapse
    By mike1993 in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 7 Sep 2008, 2:02 AM

Tags for this Thread

Posting Permissions

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