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.

Dropdown boundary="window" fails within table header when sticky-header set.

See original GitHub issue

This is pretty similar to #3563 - basically, that bug comes back if you have sticky-header set on the table. It’s really noticeable when the dropdown is longer than the table. The dropdown menu clips inside the table area, which gets a vertical scrollar when the dropdown appears:

image

But it happens even if the table is longer - note that the top of the dropdown is clipped when it goes outside the first column:

image

Expected behavior

If you set the boundary to window, I would expect the dropdown to be placed above the table content and not be clipped within the table area.

Versions

Libraries:

  • BootstrapVue: 2.5.0
  • Bootstrap: 4.4.1
  • Vue: 2.6.11

Environment:

  • Device: Desktop Workstation
  • OS: Ubuntu Linux
  • Browser: Chrome
  • Version: 82.0.4085.12 (Official Build) dev (64-bit)

Demo link

https://jsfiddle.net/yjh712sk/1/

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dflockcommented, Apr 2, 2020

Maybe set overflow: visible? although that will affect sticky headers

Not sure where to apply that, so I tried various places, to no avail.

Best I could come up as a workaround, was to not use sticky headers where the list is likely to be shorter than the menu:

:sticky-header="totalItems < 10 ? null : stickyHeader"

That’ll do for me, for now.

0reactions
stale[bot]commented, Jan 11, 2021

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make a Bootstrap dropdown show up in front of sticky ...
First, add some identity to your table. <!-- Based off https://css-tricks.com/a-table-with-both-a-sticky-header ...
Read more >
Position Sticky and Table Headers | CSS-Tricks
It makes way more sense to sticky a parent element like the table header rather than each individual element in a row.
Read more >
Table header defined as sticky header overlays option list o
The option list of the selects may not be overlaid by the sticky header of the table. Actual behavior. When using a select,...
Read more >
Drop down list scrolling in front of my fixed header - SitePoint
I have a table where the header is fixed and in my table I have a dropdown list that contains let's say a...
Read more >
The Ultimate Guide To Elementor Sticky Headers - Kinsta
A sticky header keeps important information in view. Learn how to easily build an Elementor sticky header to keep your audience engaged.
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