Results 1 to 3 of 3

Thread: Locked view is not synced with header after cell clicked

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Location
    Krasnoyarsk, Russia
    Posts
    242

    Default Locked view is not synced with header after cell clicked

    Hello.
    Bug in Ext 6.2.1 in any browser.

    When we use treeviewdragdrop plugin (or dragzone bound to view) view and header loose sync. As I see reason is onItemMouseDown handler in dragzone. Can you please provide some patch to fix this issue?

    To reproduce follow steps described in this fiddle:

  2. #2
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Location
    Krasnoyarsk, Russia
    Posts
    242

    Default

    It seems to be related also to this: https://www.sencha.com/forum/showthread.php?332451

    Best way so far is to disable some scroller logic:
    Code:
    Ext.define('MyTableScroller', {
        extend: 'Ext.scroll.TableScroller',
        alias : 'scroller.myscroller',
    
        privates : {
            onDomScroll: function() {
                var me = this,
                    position = me.position,
                    oldX = position.x,
                    oldY = position.y,
                    x, y, xDelta, yDelta;
                position = me.updateDomScrollPosition();
                if (me.restoreTimer) {
                    clearTimeout(me.onDomScrollEnd.timer);
                    return;
                }
                x = position.x;
                y = position.y;
    
                // HACK
                // Set this delta to truthy value always to force syncing scroll position
                xDelta = x - oldX || true;
                yDelta = y - oldY || true;
                // EOF HACK
    
                // If we already know about the position. then we've been coerced there by a partner
                // and that will have been firing our event sequence synchronously, so they do not
                // not need to be fire in response to the ensuing scroll event.
                if (xDelta || yDelta) {
                    if (!me.isScrolling) {
                        me.isScrolling = Ext.isScrolling = true;
                        me.fireScrollStart(x, y, xDelta, yDelta);
                    }
                    me.fireScroll(x, y, xDelta, yDelta);
                    me.bufferedOnDomScrollEnd(x, y, xDelta, yDelta);
                }
            }
        }
    });
    
    new Ext.tree.Panel({
      lockedViewConfig : {
        scrollable : { type : 'myscroller' }
      },.....
    });

  3. #3
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    I just tested the fiddle with the latest nightly build and the issue appears to be resolved.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. locked view and header are out of sync after collapsing node
    By ragzovskii in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 28 Jan 2017, 7:27 PM
  2. Replies: 2
    Last Post: 26 Nov 2014, 9:53 AM
  3. Replies: 4
    Last Post: 5 Apr 2013, 8:54 AM
  4. Replies: 0
    Last Post: 18 Apr 2011, 8:21 AM

Posting Permissions

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