-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: How do you trigger a collection-repeat resize() in v1.0.0-rc0? #3292
Comments
Try triggering a angular.element($window).triggerHandler('resize'); |
i tried it. it doesn't work because of this method - it there an easy way to add a
|
I added this these lines to the directive for now, but there has to be a better way
|
Made a small test case: http://codepen.io/zarko/pen/VYEQZM |
Ah you're right that won't work. I'll add a better way.
|
It now refreshes dimensions when $ionicScrollDelegate.resize() is called. Thanks! |
Thanks. I also updated the codepen and seems just fine now. |
Zarko http://sustainabletechknow.com/youtube_range 13.03.2015, 01:54, "Zarko Hristovski" notifications@github.com:Thanks. I also updated the codepen and seems just fine now. —Reply to this email directly or . |
Type: feat
Platform: all
I'm not sure if this is a bug or not, but in beta14 I was able to force the collection-repeat directive to recalculate dimensions and re-render with a call like this,
$ionicScrollDelegate.$getByHandle('collection-repeat-wrap').resize()
. This no longer seems to work with the new, refactored collection-repeat from 1.0.0-rc0Is there a better way to do this?
The text was updated successfully, but these errors were encountered: