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

window resize not resetting arrows

Open ticlaudeberube opened this issue 10 years ago • 10 comments

UI-layout is working erratically when resizing window ounce handle one arrow have been clicked on.

  1. Click to expand to full view horizontally or vertically
  2. 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.

ticlaudeberube avatar Dec 18 '14 20:12 ticlaudeberube

Here's a plunkr: http://plnkr.co/tuf8GfS8LI60uaYjbcfn

Steps to repro:

  1. Launch plunkr
  2. Click a chevron to either fully expand or collapse a cell
  3. 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.

neilrees avatar Dec 19 '14 15:12 neilrees

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.

jbro-io avatar Dec 20 '14 01:12 jbro-io

+1

haches avatar Mar 17 '15 13:03 haches

+1

mikeblakeuk avatar Apr 30 '15 12:04 mikeblakeuk

+1

nburt avatar May 28 '15 21:05 nburt

Hi guys .. This bug hasn't been fixed yet right ?

djimloic avatar Jul 09 '15 08:07 djimloic

+1

vbourgeois avatar Jul 16 '15 08:07 vbourgeois

+1

DjRAST avatar Sep 15 '15 08:09 DjRAST

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.

SomeKittens avatar Sep 15 '15 20:09 SomeKittens

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

DjRAST avatar Sep 21 '15 11:09 DjRAST