-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Milestone
Description
Type: bug
Platform: ios 7 webview
Using 1.0.0-beta.10 Hafnium Heron
A call to $ionicSlideBoxDelegate.update() causes a hybrid iOS 7 app to crash with lar(Error logs reveals something about a Memory error) which is not reproducible in android or desktop. the update is being called in this context:
$scope.$on('Resize', function() {
// This $scope.width and $scope.height are bound to each slide's width and height
$scope.width = (window.innerWidth || document.body.clientWidth);
$scope.height = (window.innerHeight || document.body.clientHeight) - document.querySelector("#navbar").clientHeight - document.querySelector("#footerbar").clientHeight;
// Need $timeout to break out of current $apply
$timeout(function() {
$ionicSlideBoxDelegate.$getByHandle('slideBoxHandle').update();
}, 10);
});
The crash only happens when the slidebox has a substantial size (16 ion-slides were in the test case but possibly less), and each slide contained a full-sized highchart (http://www.highcharts.com/) when the crash occurred.
Metadata
Metadata
Assignees
Labels
No labels