angular-split-pane icon indicating copy to clipboard operation
angular-split-pane copied to clipboard

Programmatic pane resize fails on third invocation

Open ghost opened this issue 7 years ago • 2 comments

Programmatic resize only works on the first two invocations.

Steps to reproduce:

  1. 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) and setLastComponent(456).

  2. Click Collapse right component. Result: OK

  3. Click Collapse left component. Result: OK

  4. Click Collapse right component again. Result: right panel is not resized and the displayed right/left component size values are incorrect.

Original demo:

ghost avatar Sep 16 '17 21:09 ghost

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 avatar Sep 20 '17 06:09 shagstrom

@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:

angular-split-pane-bug

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) to setLastComponent(123)
  • changing setFirstComponent(0) to setFirstComponent(456)

ghost avatar Sep 25 '17 21:09 ghost