Skip to content
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

q-dialog hides scrollbar, causing page to shift when displaying #17330

Open
henrychoy opened this issue Jun 28, 2024 · 0 comments
Open

q-dialog hides scrollbar, causing page to shift when displaying #17330

henrychoy opened this issue Jun 28, 2024 · 0 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@henrychoy
Copy link

henrychoy commented Jun 28, 2024

What happened?

When q-dialog is displayed, it hides the browser scrollbar (if present), causing the page contents to shift right. Same issue as this one: #3212

This issue doesn't happen with static HTML, but when I have components that pull data in, such as q-table, that increase the page height and makes the vertical scrollbar necessary, then the issue appears.

What did you expect to happen?

q-dialog should not remove the scrollbar. Or at the very least, it should not cause the page contents to shift right

Reproduction URL

https://codepen.io/Henry-Choy-the-reactor/pen/NWVVpxa

How to reproduce?

I seem to be unable to reproduce this in codepen. But in my app, I tried a simple dialog below and it is hiding the scrollbar and causing the page to shift. When checking the css, I see that overflow is set to auto as expected. Can anyone provide any tips?

<q-dialog v-model="showDialog"> Hello </q-dialog>

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@henrychoy henrychoy added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Jun 28, 2024
@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

1 participant