Results 1 to 4 of 4

Thread: [6.5.2 Modern] ScrollDock end/bottom items do not appear in the order they were added

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [6.5.2 Modern] ScrollDock end/bottom items do not appear in the order they were added

    Ext version tested:
    Ext 6.5.0.775 Modern, Ext 6.5.1.345 Modern, Ext 6.5.2.463 Modern


    Browser versions tested against:
    Windows10 x64 Chrome 62.0.3202.62
    Windows10 x64 Chrome 63.0.3236.0


    Fiddle:

    https://fiddle.sencha.com/#view/editor&fiddle/2a0t

    333.png


    Reason:
    The logic of function `changeItemIsLast` in `Ext.dataview.Component` is inconsistent with function `findTailItem` in `Ext.dataview.Abstract`.

    'changeItemIsLast' causes the scolldock end items appear in the reverse order, not the order they were added to the dataview;
    111.png

    'findTailItem' causes the list items appear above the last scolldock end item's dom node, though it's the first item of `dataview.innerItems`.
    2222.png


    222.png

    See this thread
    [6.5.2 Modern] EmptyTextCmp causes listpaging cmp positioning above list items
    Last edited by lovelyhibabe; 27 Nov 2017 at 8:08 PM. Reason: Attachment was invalid somehow

  2. #2
    Ext Support Team
    Join Date
    Nov 2017
    Posts
    46

    Default

    Hi,

    When we are docking to the bottom, all the items are stacking one upon another. That's the reason you see they are reversed.

  3. #3

    Default

    But 'findTailItem' method has the opposite loop direction, so it finds the wrong last scrollDock bottom item

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

    Default

    The behaviour is consistent, see: https://fiddle.sencha.com/#view/editor&fiddle/2a93

    Whether that's desirable or not is a different question.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Replies: 4
    Last Post: 8 Feb 2017, 6:58 PM
  2. Replies: 1
    Last Post: 21 May 2015, 5:43 PM
  3. Replies: 2
    Last Post: 2 Feb 2012, 6:48 AM
  4. Dynamic added form items are not in the GetForm items array
    By phpfreak in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Dec 2011, 11:24 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
  •