Results 1 to 4 of 4

Thread: Cant scroll upwards in Grid with BufferedRenderer and variableRowHeight (Chrome)

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    63

    Default Cant scroll upwards in Grid with BufferedRenderer and variableRowHeight (Chrome)

    Fiddle:

    https://fiddle.sencha.com/#view/editor&fiddle/1pq9

    Ext version tested:

    • 5.1.3.228
    • 6.2.1.167

    Browser versions tested against:
    • Chrome 56.0.2924.87

    Firefox and IE11 seem to be unaffected

    Description:
    • Scrolling upwards in bufferedRenderer grid with variable row height is not possible / buggy.
    • Browser always scrolls down again.

    Steps to reproduce the problem:
    • Have a grid with many rows
    • Scroll down to the lower third
    • Scroll up with the mousewheel

    The result that was expected:
    • Grid scrolls up

    The result that occurs instead:
    • Grid scrolls up a bit and then jumps down again


    Fix (for ExtJs5):
    Code:
    Ext.define('Perbility.fix.view.NodeCache', {
        override: 'Ext.view.NodeCache',
        
        scroll: function() {
            var me = this,
                view = me.view,
                scrollTop = view.getScrollY(), ret;
            
            // NodeCache#scroll adds/removes lines above/below the current view range
            // => this can lead to the browser adapting the scroll position to compensate
            // but this is a buffered renderer and so we want the scroll position to stay unchanged
            ret = me.callParent(arguments);
            
            if (scrollTop !== view.getScrollY()) {
                view.setScrollY(scrollTop);
            }
            
            return ret;
        }
    });

  2. #2
    Sencha Premium Member
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    361

    Default

    I have similar problems with scroll/chrome for grouped grids. Are the issues related maybe?

    https://fiddle.sencha.com/#fiddle/1qdj&view/editor

    / E

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    63

    Default

    Yeah, seems to be the same problem.
    My fix only works in ExtJs5 (thats why I posted this report in the ExtJs5-Forum). But maybe my fix can help you find a fix for ExtJs6.

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    23

Similar Threads

  1. [NOREPRO] store.loadData() causes grid to scroll to top in Chrome
    By mtkutz in forum Ext 5: Bugs
    Replies: 5
    Last Post: 31 Mar 2015, 11:02 AM
  2. Replies: 1
    Last Post: 5 Sep 2014, 8:03 AM
  3. double scroll bar on grid in chrome
    By tangalla in forum Ext: Q&A
    Replies: 1
    Last Post: 22 Apr 2013, 12:23 PM
  4. Replies: 2
    Last Post: 17 Jan 2013, 12:51 AM
  5. Replies: 4
    Last Post: 29 Aug 2011, 3:41 PM

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
  •