Slider layout broken after rotation

I noticed that after rotating the app to landscape and back to portrait and then navigating back to a cached view that has sliders, those sliders have a broken layout (width: 0). As a workaround I’m doing $ionicSlideBoxDelegate.update() in $ionicView.beforeEnter and it’s fine now. I wonder if others had this problem too and if the workaround is ok.
It seems to have appeared in some of the late nighlies, and is in beta14 now too.

Yeah calling update is a quick fix right now.

  $scope.$on('$ionicView.enter', function(){
    $ionicSlideBoxDelegate.update();
  })

May have to add a call to auto-update the slide-box on view.enter…but we will wait until the new slide-box is done.

1 Like