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
EZP-29210: Fix admin UI anchor link scroll bug #1366
EZP-29210: Fix admin UI anchor link scroll bug #1366
Conversation
- fixed height on the width controller element causes the user to get 'stuck' and unable to scroll back to the top when clicking on a link targeting an in page anchor The bug is also noted in this Jira ticket: https://jira.ez.no/browse/EZP-29210
This new PR fixes the original issue and addresses the side-effect found on PR #1364 (closed) |
I've reproduced the issue, so if this fixes it, I'm +1. I do however worry about 3rd party extensions that might use |
This fix works (checked on Chrome, Firefox and Safari). However, is there any reason why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 provided the comment by @konradoboza is taken care of
@emodric the instance I was testing this on had the eZ Tags extension installed, which also has a menu include with the widthcontrol-handler in it. When there were multiple widthcontrol-handler elements in place (one from the pagelayout, one from the menu include) only the first one from the pagelayout was shown and active. @konradoboza it looks like I missed that one. I'll check and update the commit shortly. Thanks all for the quick feedback. |
- removed widthcontrol-handler from user menu include template (admin)
The update has been applied to the user template as well now, as pointed out by @konradoboza above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on eZ Publish 5.4.11.1 with diff.
* Fix admin UI anchor link scroll bug - fixed height on the width controller element causes the user to get 'stuck' and unable to scroll back to the top when clicking on a link targeting an in page anchor The bug is also noted in this Jira ticket: https://jira.ez.no/browse/EZP-29210 * Fix admin UI anchor link scroll bug - removed widthcontrol-handler from user menu include template (admin) (cherry picked from commit a844df6)
'stuck' and unable to scroll back to the top when clicking on a link
targeting an in page anchor
The bug is also noted in this Jira ticket:
https://jira.ez.no/browse/EZP-29210