-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
QSelect cover mode within QDialog jumpy dropdown #8191
Comments
Also, only the Edit 2: Hm, I noticed position-engine.js has a pretty big PR to it open. Not sure if this bug will still be present with the changes. |
Verified. Every other item in the list, when hovered, is causing a picel height in growth to occur. |
@pianopronto |
@pdanpdan Confirmed your branch resolves the issue. Thanks! |
Well keep it open until it's fixed in an official release. |
Describe the bug
I have a QSelect within a QDialog (I use the plugin, but the codepen below uses the component). When the QSelect has many options, the dropdown's position jumps around. You can see the bottom edge move around when hovering over some of the options in the select.
In my app, I had worse effects that I couldn't reproduce in the codepen, such as the list items also moving around, both horizontally and vertically. The issue appears in chrome, but not in firefox.
Codepen/jsFiddle/Codesandbox (required)
https://codepen.io/pianopronto/pen/JjREGWd
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The QSelect dropdown should not move.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
OS: Windows
Node: 14.13.1
NPM: 6.14.8
Yarn: 1.22.5
Browsers: Chrome Version 87.0.4280.88 (Official Build) (64-bit)
iOS: n/a
Android: n/a
Electron: n/a
Additional context
Changing
src/utils/position-engine.js
with the following fixes the issue for me. I am not sure if there's any implications for higher DPI screens for doing this.Edit: Added exact chrome version
The text was updated successfully, but these errors were encountered: