Skip to content

Instantly share code, notes, and snippets.

@unicolet
Created July 6, 2012 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unicolet/3059885 to your computer and use it in GitHub Desktop.
Save unicolet/3059885 to your computer and use it in GitHub Desktop.
Refresh SC.ListVIew (and scroll down)
/*
NOTE: replace YourListView/YourController with the actual names of the
controller/listview in your app.
*/
YourController.content.add(yournewobject);
this.invokeLater(function(){
YourListView.computeLayout();
YourListView.scrollDownPage();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment