Results 1 to 2 of 2

Thread: 6.5.0.755: Expanding grid group broken when scrollable is set to false.

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-25756 in 6.5.1.
  1. #1
    Sencha User
    Join Date
    Aug 2015
    Posts
    19

    Default 6.5.0.755: Expanding grid group broken when scrollable is set to false.

    I have an Architect project that I just updated to 6.5 that contains a Grid with scrollable set to false and is grouped with collapsible groups. When you try to expand a group with grouping.expand('groupname') or expand or collapse a group using the icon, nothing happens and an error
    Uncaught TypeError: scroller.getPosition is not a function at constructor.onReplace (VM294 ext-all-debug.js:192848)
    at constructor.callParent (VM294 ext-all-debug.js:12735)
    at constructor.onReplace (VM294 ext-all-debug.js:216773)
    at constructor.fire (VM294 ext-all-debug.js:21551)
    at constructor.doFireEvent (VM294 ext-all-debug.js:22524)
    at constructor.fireEventArgs (VM294 ext-all-debug.js:22377)
    at constructor.fireEvent (VM294 ext-all-debug.js:22336)
    at constructor.collapseGroup (VM294 ext-all-debug.js:226374)
    at constructor.doCollapseExpand (VM294 ext-all-debug.js:227447)
    at constructor.collapse (VM294 ext-all-debug.js:227359)
    is shown in the console.

    I found that in Ext.view.AbstractView onReplace() which is ultimately called from Ext.view.Table onReplace(), the following lines do not work if scrollable is set to false:
    Code:
    var me = this,
        all = me.all,
        scroller = me.getScrollable(),
        yPos = scroller.getPosition().y, // <-- here!
        selModel = me.getSelectionModel(),
        origStart = startIndex,
        result, item, fragment, children, oldItems, endIndex, restoreFocus;
    Here is the related fiddle.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,254

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. [OPEN] Expanding group problem.
    By psujdak in forum Ext:Bugs
    Replies: 1
    Last Post: 19 Oct 2015, 6:03 AM
  2. [FIXED] [5.1] Setting scrollable:false on a grid throws exception.
    By thomas.hardwick in forum Ext 5: Bugs
    Replies: 1
    Last Post: 16 Jan 2015, 9:55 AM
  3. [CLOSED] list scrollable=false
    By adamatvips in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 29 Nov 2011, 5:52 PM
  4. GroupingGrid and first group with & char not expanding
    By tvanzoelen in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 19 Feb 2010, 8:41 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
  •