Created
July 6, 2012 12:25
-
-
Save unicolet/3059885 to your computer and use it in GitHub Desktop.
Refresh SC.ListVIew (and scroll down)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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