-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Bug Report][3.1.6] Menu wrongly positioned in dialog after scrolling (only when first open) #16770
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Maybe of help: when I scroll the page menu suddenly appears. |
issue with scroll-strategy 'block' is problem. |
My solution to this was to set const dialog = ref(false)
watchEffect(() => {
document.documentElement.style.overflow = dialog.value ? 'hidden' : null
})
....
<v-dialog v-model="dialog"> |
@KaelWD Did you already have an idea about how you wanted to fix this one?
contentBox.y is negative and so is v-body-scroll. So its actually doubling the offset vs correcting it back to 0. Just changing to |
A simple workaround to this issue is adding
This has the drawback that the underlying page is scrollable when the dialog is open. You'll see the content scrolling under the dialog and the overlay. |
Yes this works, but when you go to xs with inner scrollbar(overflow-y-auto) that will give you 2 scrollbars side by side. Needs a proper fix. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This problem is not resolved in v3.2.2 |
Correct |
@gdgcentrica Should be resolved in 3.2.3. |
Environment
Vuetify Version: 3.1.6
Last working version: 3.1.2
Vue Version: 3.2.47
Browsers: Chrome 110.0.0.0
OS: Mac OS 10.15.7
Steps to reproduce
Expected Behavior
Menu should be directly under the select input. On the second attempt, the menu is correctly positioned.
Actual Behavior
Menu is not visible because its not directly under the menu.
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
Calculation of the top attribute is not correct.
The text was updated successfully, but these errors were encountered: