-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot combine vertical and horizontal panes #15
Comments
@Haixing-Hu I've been using your fixed version for a project, but I stumbled into an issue combining vertical and horizontal panes. If you set an initial width on the outer pane (50% resizing horizontally), and then adjust the vertical subpane inside of it, it will also set its width to be the initial width. |
@ignisphaseone Hi, can you show me some example codes? |
Sample code posted above. Using nested multipanes, my outer multipanes are split at horizontal 50%. If the outer resizer is used to change the width, everything works as expected. If the inner resizer is used to change the height of the |
@ignisphaseone Hi, please try the following code. It works perfect. Note the CSS code.
The point is that, the pane on the one side of |
@Haixing-Hu Ah ha! Thanks, I've fixed my code. +1 for merging the fix! =) |
…e-multipane into fix-15-14-7 * 'combined-multipane' of https://github.com/Haixing-Hu/vue-multipane: rebuild the source remove the debug logging statements in the source files fix yansern#15 # Conflicts: # demo/main.js # dist/vue-multipane.esm.js # dist/vue-multipane.js # dist/vue-multipane.min.js # src/multipane.js
…fix#19-yansern#15-yansern#14-yansern#7-yansern#17-yansern#1 * 'master' of https://github.com/vibou/vue-multipane: 0.96 fix issue with event names. Renamed: resize resizestart and resizestop since kebab case is not working either 0.96 0.96 0.96 Change version Change events name from camelcase to kebab-case # Conflicts: # demo/main.js # dist/vue-multipane.esm.js # dist/vue-multipane.js # dist/vue-multipane.min.js # src/multipane.js
Unfortunately, this still isn't a full fix. If I drag the horizontal reisizer left and right, it resizes the top window horizontally. I would have thought that because this is a horizontal resizer, It should ignore horizontal movement and only listen to vertical mouse deltas. |
For example, the following code does not work.
When resizing the horizontal resizer both the height and the width of the pane 2 will be change.
This is because the
multipane
component catch the mouse up and mouse down event on the whole component instead of the resizer.I think this could be fixed by catching the event of the resizer instead of the whole component.
The text was updated successfully, but these errors were encountered: