-
Notifications
You must be signed in to change notification settings - Fork 99
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
Unable to sort menu items when the box is scrolled down #384
Comments
Hi @vitty1, it's related to an old JS library. It's in my todo list, but don't know when will I be able to continue. Same issue in sitemap: rainlab/sitemap-plugin#66 |
I'm having the same issue. OctoberCMS version: 446 After a bit of testing I found that I could partially overcome the problem by setting
in Settings -> Customize back-end -> Styles. This overrides the default style being applied, which is:
With this change you can re-order the items even if the menu has been scrolled. The issue is that the stacking context of the absolutely positioned element was being set to the div under the control-scrollbar by Scrolling using the mouse during a sort still causes issues, because scrolling doesn't affect the I'm going to look into this further and see if there is a way to get the js to update the position correctly on scroll. |
Another quick update. If you scroll using the mouse button, the problem mentioned in my previous post persists, however if you scroll by dragging the item to the top or bottom of the screen the the above fix works perfectly and you will be able to sort the menu items correctly. I'm still not sure what is causing the mouse scroll to work differently than dragging the item to the top or bottom of the screen. |
@nleehone are you able to make a PR with a fix to this? |
I still haven't managed to fix the issue with the mouse scroll wheel, so it wouldn't be a complete fix - it would only address the problem when dragging the item without using the scroll wheel. If this is acceptable then I will look into how to make a PR (never done this before). |
@nleehone Would you mind starting a PR with the fix so far? You will need to fork the Pages plugin repo and then follow the steps here in order to make a pull request from your fork. |
@bennothommo what I've found out, that we need to fix old https://github.com/johnny/jquery-sortable plugin to make it work. So, I'd say it's a core issue. |
This is one step closer to fixing the sorting issues when a scrollbar is present. It still doesn't quite fix the issue, still need to find a way to get the container dimensions to update Refs rainlab/pages-plugin#384 Refs 1d91c22
It is unsure why this was ever needed, but it appears to fix the overflow issues with the sortable plugin Refs rainlab/pages-plugin#384 Refs 11be3fe
Mouse scroll wheel fix: octobercms/october@ed2eec6 CSS fix: This should be fixed in Build 462+ |
This is one step closer to fixing the sorting issues when a scrollbar is present. It still doesn't quite fix the issue, still need to find a way to get the container dimensions to update Refs rainlab/pages-plugin#384 Refs 1d91c221b0b32592ec93c9f4824d108fc2a5cc5e
It is unsure why this was ever needed, but it appears to fix the overflow issues with the sortable plugin Refs rainlab/pages-plugin#384 Refs 11be3fede39024f285309f61cbf32ee4d0d5cc28
Hello,
I'm not able to sort menu item when there are more items and the box is scrolled down.
OctoberCMS version: 446
Static Pages version: 1.2.20
Tested in Firefox, Chrome
The text was updated successfully, but these errors were encountered: