-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
[BUG] Pane won't scroll if it was hidden in an overflow position #135
Comments
I just checked and the bug happens when the pane reaches the middle breakpoint, having its content scrolled down to the bottom or nearly the bottom:
|
@derek90 by default, middle position set overflow to But the other questions i have:
|
@roman-rr I'm not dragging the pane to bottom, just the pane inside content to bottom (at top position breakpoint). |
@derek90 Ok i got it. I will check restore from hidden mode, but meanwhile you can try additionally call this.pane.moveToBreak('top');
this.pane.setOverflowHeight();
this.pane.checkOverflowAttr(); |
The issue is not when restoring the pane from hidden mode. You can try opening a pane with a long scroll content to the pane top breakpoint, then scroll the content al the way down while the pane still being in the top breakpoint. After that, with the pane content scrolled down, drag the pane to the middle position, and now, try to drag it from the pane content back to the top position. It will make like a jump (no animation transition) and you will find that the scroll got stuck. Once there, it will only let you drag the content again if you drag the pane from the draggable element a little bit, without changing the pane breakpoint |
@derek90 Thank you for details, i will check soon. |
@derek90 fixed and will be available on |
Describe the bug
When I open a pane, and scroll its content to the bottom or nearly the bottom of it, and then hide the pane with the hide() method, next time I open the pane again (which will be keep the scroll in the previous position) won't let me scroll the content, until I use the draggable element and drag it a little bit. I fix it setting the scrollTop property of the pane parent div that wraps it to zero. That so, the pane will open at the top of the scroll of its content next time, but at least it will allow the user to scroll its content
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Once a pane is hidden using the hide() method, after open the pane again, the user should be able to see the pane scroll content where it left, and be able to continue scrolling it
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
These are my pane settings:
I'm using the last release of the plugin (1.2.5)
The text was updated successfully, but these errors were encountered: