angular-split-pane
angular-split-pane copied to clipboard
Programmatic pane resize fails on third invocation
Programmatic resize only works on the first two invocations.
Steps to reproduce:
-
In the file set-component-size.html set the resize values to non-zero values so that both buttons are visible after the programmatic resize, e.g.
setFirstComponent(123)
andsetLastComponent(456)
. -
Click Collapse right component. Result: OK
-
Click Collapse left component. Result: OK
-
Click Collapse right component again. Result: right panel is not resized and the displayed right/left component size values are incorrect.
Original demo:
Thanks for reporting this! I'm not able to reproduce the issue. I've tried in Safari, Chrome and IE 11. Which browser are you using?
@shagstrom: I have used Chrome, Safari and Firefox on mac and windows — reproducible in all browsers I tried.
Screen demo
Please see the attached screen capture:
Screen demo MP4 (zipped) video (better quality)
MP4 version of the screen grab: angular-split-pane-bug.mp4.zip
The modified source files
The modified files saved from http://www.dreamchain.com/static/angular-split-pane/examples/set-component-size.html:
angular-split-test.zip
Modifications:
- changing
setLastComponent(0)
tosetLastComponent(123)
- changing
setFirstComponent(0)
tosetFirstComponent(456)