question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QSelect cover mode within QDialog jumpy dropdown

See original GitHub issue

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:

  1. Open dialog
  2. Open QSelect
  3. Hover around on items and see the bottom edge jump around

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.

export function getTargetProps (el) {
  return {
    top: 0,
    center: Math.round(el.offsetHeight / 2),
    bottom: el.offsetHeight,
    left: 0,
    middle: Math.round(el.offsetWidth / 2),
    right: el.offsetWidth
  }
}

Edit: Added exact chrome version

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pdanpdancommented, Dec 12, 2020

Well keep it open until it’s fixed in an official release.

0reactions
justinbeatycommented, Dec 12, 2020

@pdanpdan Confirmed your branch resolves the issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quasar Components Transitions
Quasar Components Transitions. There are a few Quasar components that implement transitions through transition-show / transition-hide or transition-prev ...
Read more >
Set entire app to Dark Theme? | Quasar Framework Community
Hi Everyone, Just beginning to explore Quasar and I'm wondering if you can easily set the entire app to be a dark theme...
Read more >
Prevent Click Propagation Outside Of Quasar Qselect - ADocLib
02/10/2018 I'm using Quasar UI elements in a Vue.js project.For some popup elements specifically qselect in this case clicking outside of the qselect....
Read more >
Recent Threads - Processors forum
Part Number: TMS320DM8168. Hi ,. We have a custom DM8168 board with ti EZSDK. We should get CVBS analog video from IOUTD. What...
Read more >
Python - RapidTech1898
MODULE - PYTHONCOM - make new formula in excel with python-function jump to. ... Select all occurences of this word in the document...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found