ui-layout
ui-layout copied to clipboard
window resize not resetting arrows
UI-layout is working erratically when resizing window ounce handle one arrow have been clicked on.
- Click to expand to full view horizontally or vertically
- Resize window
Handle reset to origins but click handle does not reset both arrows and handle is not moving anymore. All arrows should then be visible.
Same issue with mouse scroll when both arrows are not present on the handle and the reset is not complete.
Here's a plunkr: http://plnkr.co/tuf8GfS8LI60uaYjbcfn
Steps to repro:
- Launch plunkr
- Click a chevron to either fully expand or collapse a cell
- Resize browser such that the plunkr container resizes (make it narrower!) - or run plunkr full screen and just resize the browser.
On resize the collapsed cell assumes it's original size but still has it's collapsed state.
Ahh, nice catch guys. I'll see if I can't get this fixed over the course of the next week. I also plan on adding the ability to disable the chevrons completely. Just need to find the time during the holiday.
+1
+1
+1
Hi guys .. This bug hasn't been fixed yet right ?
+1
+1
commenting +1 does not make code happen any faster. If you're particularly interested in this getting done sooner rather than later, open a PR.
I wrote a quickfix for the issue: When resizing the window, all colapsed areas will get expanded. This, of course is not perfect but still better than having a corrupted layout.
https://github.com/DjRAST/ui-layout/commit/9bcbd808f77b5ee9ff9a31050f8677a5df72df70