Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
[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
-
Ext Support Team
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.
-
Sencha User
But 'findTailItem' method has the opposite loop direction, so it finds the wrong last scrollDock bottom item
-
The behaviour is consistent, see: https://fiddle.sencha.com/#view/editor&fiddle/2a93
Whether that's desirable or not is a different question.