ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: slidebox pager discounts if replace cached content

Open kaikcreator opened this issue 11 years ago • 4 comments

Type: bug

Platform: all

The problem happens with cached slidebox.

After:

  1. using slidebox to move between slides
  2. change view (so slidebox get cached)
  3. returning to slidebox
  4. replace its content on enter (and number of slides)

Then: The sliderbox pager shows an incorrect number of slides.

Check this codepen: http://codepen.io/-kaik-/pen/KwZgOG

kaikcreator avatar Feb 10 '15 18:02 kaikcreator

Seeing a very similar issue also.

  • using slidebox to move between slides
  • use a custom filter to change the set of data being viewed
    • wrap all the below in a scope.$applyAsync
    • empty data structure containing viewed data
    • fill structure with new data
    • call $ionicSlideBoxDelegate.update()
    • call $ionicSlideBoxDelegate.slide(0)
  • swipe to a new item
  • select a filter to do step 2 again. (pager will be hosed)

There are also visual artifacts that happen when swiping between cards after the pager gets hosed.

agnellvj avatar Mar 06 '15 03:03 agnellvj

will this issue be solved if this commit is brought in? https://github.com/driftyco/ionic/commit/2ab776023d571d57d9b8a1d7878904b24b1364f8

agnellvj avatar Mar 06 '15 04:03 agnellvj

I'm still getting this issue (as shown in the codepen) in version 1.0.0.

rossholdway avatar May 19 '15 13:05 rossholdway

Greetings @kaikcreator!

I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.

Thank you for allowing me to assist you.

Ionitron avatar Aug 17 '15 15:08 Ionitron