PDA

View Full Version : Bug in empty lists with scrolling enabled



Der Papst
28 Nov 2011, 5:37 AM
Sencha Touch version tested:

1.1.1

Platform tested against:

iOS 5
Safari on MacOSX

Description:
If you have an empty list with grouping enabled there is a bug in the onScroll part of the List class.
this.closest.current might be undefined.

Possible fix:


--- sencha-touch-debug-w-comments.js 2011-11-27 17:01:46.000000000 +0100
+++ sencha-touch-debug-w-comments.js 2011-11-28 13:24:07.000000000 +0100
@@ -35788,7 +35787,7 @@
}
else if (
(this.closest.next && pos.y > this.closest.next.offset) ||
- (pos.y < this.closest.current.offset)
+ (this.closest.current && pos.y < this.closest.current.offset)
) {
this.closest = this.getClosestGroups(pos);
this.setActiveGroup(this.closest.current);

mitchellsimoens
28 Nov 2011, 12:30 PM
Thank you for the report however it is unclear whether or not ST1 will be further developed.