Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Hiding and then showing the layout doesn't re-calculate offsets properly. #233

Open
jtmille3 opened this issue Jan 12, 2018 · 2 comments
Open

Comments

@jtmille3
Copy link

http://plnkr.co/edit/cnjczm9zjHZEczswSUjA?p=preview

  1. View initializations and lays out properly.
  2. Click the hide button to hide the ui layout component.
  3. This triggers a calculate call.
  4. Click the show button to show the ui layout component.
  5. The layout is messed up from the previous calculate call on hide. A new re-calculation never happens on show.
@jtmille3
Copy link
Author

A potential work around is to manually trigger a resize after the hidden view is shown.

rishu2482 added a commit to rishu2482/ui-layout that referenced this issue Mar 22, 2018
Fixed angular-ui#233 | Hiding and then showing the layout doesn't re-calculate offsets properly.
@rishu2482
Copy link

Hi,
I have fixed this and raised a pull request. You can have a look at the fix.

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

2 participants