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.

Multiple issues with selects in fixed navbars

See original GitHub issue

Steps to reproduce

Create an application with a fixed toolbar and a select in it. Add a prepend icon, and the solo and autocomplete properties to the select

Versions

Latest versions as of today (21/09/2019): Vue v2.4.4 Vuetify v0.15.7

What is expected ?

I expect the select items to be aligned with the text field (x-axis) and to stay just under the search box (y-axis)

What is actually happening ?

  • There is an offset on the left, corresponding to the prepend icon
  • When I scroll through the page, the items scroll when they shouldn’t : the search box is fixed (check the codepen)
  • I can’t reproduce it on codepen but on my actual application, the box opens far under my search box : Screenshot from the actual application . You can see the x-axis offset and the y-axis offset.

Reproduction Link

https://codepen.io/tsauvajon/pen/KXMxyv

Further note

I can’t seem to find the different slots available for selects. In the documentation, there are exemples for the “item” and “selection” slots. It would be nice to have a list of all avaible slots, and a slot to “customize” the dropdown menu (e.g. nudge-left, position-x properties)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
johnleidercommented, Sep 29, 2017

resolved with b34c329cc8437c4fc9c2dd796f80cdd30b21021f

1reaction
johnleidercommented, Sep 21, 2017

The toolbar sets the margin of the first and last elements to ensure proper spacing. When the select is the only element, it is getting these values. Temporary fix is to add the class ma-0 to v-select.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4 navbar multiple elements position issue
When this menu opens in desktop view, the left image should be positioned to the right side. The logo image left with the...
Read more >
Position issue inside absolute scrolling container #1422
I am using select-picker in a page where I have a navbar and a main area which is in position:absolute and overflow-y:auto.
Read more >
Navbar - jQuery Mobile Demos
These pages are a demo of a persistent navbar in a fixed footer toolbar. Click on any of the links in the footer,...
Read more >
Navbar | Components - BootstrapVue
The component is a responsive wrapper that positions branding, navigation, and other elements into a concise header. It's easily extensible and thanks to ......
Read more >
How to place content under fixed flexbox navigation bar
We can place Content in the fixed navigation bar by two methods as follows: ... to fix navbar */ ... < h1 >Fixed...
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