{"action":"created","issue":{"url":"https://api.github.com/repos/jimnanney/ember-treeview/issues/1","labels_url":"https://api.github.com/repos/jimnanney/ember-treeview/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jimnanney/ember-treeview/issues/1/comments","events_url":"https://api.github.com/repos/jimnanney/ember-treeview/issues/1/events","html_url":"https://github.com/jimnanney/ember-treeview/issues/1","id":55594270,"number":1,"title":"Thinking of different way to do this","user":{"login":"danielspaniel","id":180456,"avatar_url":"https://avatars.githubusercontent.com/u/180456?v=3","gravatar_id":"","url":"https://api.github.com/users/danielspaniel","html_url":"https://github.com/danielspaniel","followers_url":"https://api.github.com/users/danielspaniel/followers","following_url":"https://api.github.com/users/danielspaniel/following{/other_user}","gists_url":"https://api.github.com/users/danielspaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/danielspaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielspaniel/subscriptions","organizations_url":"https://api.github.com/users/danielspaniel/orgs","repos_url":"https://api.github.com/users/danielspaniel/repos","events_url":"https://api.github.com/users/danielspaniel/events{/privacy}","received_events_url":"https://api.github.com/users/danielspaniel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-27T09:28:47Z","updated_at":"2015-01-27T19:15:04Z","closed_at":null,"body":"Jim, thanks for getting this on github :)\r\n I was thinking that it might be faster to handle the expand collapse in a different way, but it would involve making a new TreeListView class that overrides some of the behavior in ListView.  Instead of hide and remove elements as you do now, I was going to put boolean on hidden elements in list, and then instead of start and end index, was going to have the listView calculate the view items by start and delta which goes through array sequencially looking for only nodes which are visible till it gets the the number it needs. \r\n I will give it a try and then show you when done. I think it will solve the slowness problems of expand / collapse."},"comment":{"url":"https://api.github.com/repos/jimnanney/ember-treeview/issues/comments/71708686","html_url":"https://github.com/jimnanney/ember-treeview/issues/1#issuecomment-71708686","issue_url":"https://api.github.com/repos/jimnanney/ember-treeview/issues/1","id":71708686,"user":{"login":"jimnanney","id":309995,"avatar_url":"https://avatars.githubusercontent.com/u/309995?v=3","gravatar_id":"","url":"https://api.github.com/users/jimnanney","html_url":"https://github.com/jimnanney","followers_url":"https://api.github.com/users/jimnanney/followers","following_url":"https://api.github.com/users/jimnanney/following{/other_user}","gists_url":"https://api.github.com/users/jimnanney/gists{/gist_id}","starred_url":"https://api.github.com/users/jimnanney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimnanney/subscriptions","organizations_url":"https://api.github.com/users/jimnanney/orgs","repos_url":"https://api.github.com/users/jimnanney/repos","events_url":"https://api.github.com/users/jimnanney/events{/privacy}","received_events_url":"https://api.github.com/users/jimnanney/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T19:15:04Z","updated_at":"2015-01-27T19:15:04Z","body":"visible row count\n\nBut thinking some more, maybe not. The index in the content is what is being used to calculate the y, but it needs to be the index of the item in the number of visible rows to calculate it."}}