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.

[Feature Request] Make dropdown position calculation compatible for embedded Vuetify apps

See original GitHub issue

Problem to solve

If you have a Vuetify app that is embedded into a page where it is not taking up the full browser window, an app on a WordPress page for example, and you have a relative positioned element as its parent, dropdowns like VSelect will be offset.

Proposed solution

I tried digging into the source code, but could not really track down the logic, but the only way for me to get Vuetify’s dropdowns to work in an embedded app situation, I had to remove all position: relatives from parent nodes. Add position: relative to v-app didn’t work, so I’m guessing the calculation is based on the window, but somehow relative position parents alter the calculation.

I propose rewriting how the positioning calculation is performed and making sure v-app is the reference used for positioning.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

10reactions
hicreatecommented, Oct 27, 2020

For me the solution I found that works is to use the attach prop without a value i.e.

<v-select :items="items" attach></v-select>

8reactions
stephane303commented, Sep 2, 2020

Is there a workaround meanwhile ? I am also embedding a Vuetify application, and I am confronted with the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Menu component - Vuetify
The v-menu component shows a menu at the position of the element used to ... Menu can be offset by the X axis...
Read more >
how to show table data in dropdownlist in django html using ...
You need to add the handling of not existing data in the view code. Some remarks: The whole thing does not really make...
Read more >
Customize v-select dropdown position - Stack Overflow
I am using vuetify v-select component. The issue I am facing is instead of opening the dropdown downwards, I want it to open...
Read more >
A curated list of awesome things related to Vue.js
Advanced Vue.js Features from the Ground Up - Learn how to build more ... Keep Formula is a simple app to make your...
Read more >
My vue.js + vuetify and cordova starter, for building APKS and ...
My 2020 vue.js + vuetify and cordova starter, for building Android APK and sell them. French: Starter to create APK Androids apps with...
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