ui-layout icon indicating copy to clipboard operation
ui-layout copied to clipboard

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

Open jtmille3 opened this issue 8 years ago • 2 comments

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 avatar Jan 12 '18 13:01 jtmille3

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

jtmille3 avatar Jan 12 '18 14:01 jtmille3

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

rishu2482 avatar Mar 25 '18 05:03 rishu2482