ui-layout
ui-layout copied to clipboard
Hiding and then showing the layout doesn't re-calculate offsets properly.
http://plnkr.co/edit/cnjczm9zjHZEczswSUjA?p=preview
- View initializations and lays out properly.
- Click the hide button to hide the ui layout component.
- This triggers a calculate call.
- Click the show button to show the ui layout component.
- The layout is messed up from the previous calculate call on hide. A new re-calculation never happens on show.
A potential work around is to manually trigger a resize after the hidden view is shown.
Hi, I have fixed this and raised a pull request. You can have a look at the fix.