Skip to content

bug: ionicSlideBox resize crashes on iOS #1850

@forrestjt

Description

@forrestjt

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions