{"action":"opened","issue":{"url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/940","labels_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/940/labels{/name}","comments_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/940/comments","events_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/940/events","html_url":"https://github.com/OnsenUI/OnsenUI/issues/940","id":110502652,"number":940,"title":"Lazy-repeat but since 1.3.8","user":{"login":"andipavllo","id":10593912,"avatar_url":"https://avatars.githubusercontent.com/u/10593912?v=3","gravatar_id":"","url":"https://api.github.com/users/andipavllo","html_url":"https://github.com/andipavllo","followers_url":"https://api.github.com/users/andipavllo/followers","following_url":"https://api.github.com/users/andipavllo/following{/other_user}","gists_url":"https://api.github.com/users/andipavllo/gists{/gist_id}","starred_url":"https://api.github.com/users/andipavllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andipavllo/subscriptions","organizations_url":"https://api.github.com/users/andipavllo/orgs","repos_url":"https://api.github.com/users/andipavllo/repos","events_url":"https://api.github.com/users/andipavllo/events{/privacy}","received_events_url":"https://api.github.com/users/andipavllo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T17:23:54Z","updated_at":"2015-10-08T17:23:54Z","closed_at":null,"body":"These is a bug in `ons-lazy-repeat` element since 1.3.8 release. Sometimes, in case of a large amount of datas loaded, the element gets bugged and doesn't work at all.\r\n\r\nI was able to find the wrong commit, which is the following one:\r\n\r\nhttps://github.com/OnsenUI/OnsenUI/commit/c8ca1285f6d4943490fd32b0409859a54bbd5325\r\n\r\nThe exact portion of code is the following:\r\n\r\n```\r\nif (cnt !== this._itemCount){\r\n        this._recalculateItemHeightSum();\r\n        this._maxIndex = cnt - 1;\r\n}\r\nthis._itemCount = cnt;\r\n\r\n```\r\n\r\nRemoving it, the element works fine. Probably it's because it executes the assertion while the datas are still being fetched.\r\n\r\n"}}