Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Orientation doesn't update cached collection #3345

Closed
mark-netalico opened this issue Mar 17, 2015 · 4 comments
Closed

bug: Orientation doesn't update cached collection #3345

mark-netalico opened this issue Mar 17, 2015 · 4 comments

Comments

@mark-netalico
Copy link

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>

@anwaramoon
Copy link

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()"

#3292

@perrygovier
Copy link
Contributor

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

@perrygovier perrygovier added needs: reply the issue needs a response from the user list labels Mar 20, 2015
@Ionitron
Copy link
Collaborator

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 Ionitron added ionitron:closed and removed needs: reply the issue needs a response from the user labels Apr 20, 2015
@ninjakatz
Copy link

this is still relevant!

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants