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

bug: Orientation doesn't update cached collection

Open mark-netalico opened this issue 11 years ago • 4 comments

Type: bug

Platform: all

I've found that if you use collection-repeat and you rotate your device while on another tab then when you go back to the original tab its stuck assuming the width of the previous orientation so it looks weird. For now I just put in place this workaround that clears my view cache whenever the device rotates.

window.addEventListener("orientationchange", function() {
    $ionicHistory.clearCache();
  }, false);</span>

mark-netalico avatar Mar 17 '15 20:03 mark-netalico

ajoslin added resize method in scroll delegate to force collection repeat to calculate dimensions. You can try this code in tab active/selected event.

"$ionicScrollDelegate.resize()"

https://github.com/driftyco/ionic/issues/3292

anwaramoon avatar Mar 19 '15 22:03 anwaramoon

Hey @netalico, does ajoslin's recent fix resolved your issues.

perrygovier avatar Mar 20 '15 19:03 perrygovier

Greetings @netalico!

My sensors indicate a reply was requested, but we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Apr 20 '15 04:04 Ionitron

this is still relevant!

ninjakatz avatar Nov 17 '15 09:11 ninjakatz