-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
clonePosition() bug in prototype.js ver 1.7.3 #2643
Comments
I don't think there will be a 1.8.0 version, so you can propose a PR to integrate it into the existing code. Maybe we should take a look at the reported issues and proposed PRs for this library to bring our version to a better shape. Not being an active project, we will have to patch it here, it is not like ZF1-Future. |
This one seems to be a serious bug: prototypejs/prototype#355. There is a PR in their repository but it was not merged yet. We should integrated it in advanced. |
I am closing it because it was solved by PR #2669, but I will analyze this library in more detail and its issues already reported on the official page. I have in plan to take over some PRs to bring them here. |
To follow! |
Summary (*)
Ref issue #1497. I experienced the bug reported here. I use
Ajax.Autocompleter()
inmagento-lts/js/scriptaculous/controls.js
Line 43 in ee46ff9
and expected the
div
element to show up below theinput
element, but thediv
element top position was incorrectly calculated inclonePosition()
magento-lts/js/prototype/prototype.js
Line 4264 in ee46ff9
Examples (*)
See example here to test. Copy paste in case the link no longer work:
HTML
Javascript
CSS
The styling of the div and the returned UL are important.
Applying a visual cue that an item is selected allows the user to take advantage of the keyboard navigation of the dropdown and adding background colors, borders, positioning, etc to the div (as the demo does) allows the UI element to stand out. The CSS from the demo applied to the examples would be:
Proposed solution
Replace
clonePosition()
with this:The text was updated successfully, but these errors were encountered: