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

<select> boxes with very long <option> text causes grid columns to resize #39

Open
mor10 opened this issue Apr 6, 2018 · 1 comment

Comments

@mor10
Copy link

mor10 commented Apr 6, 2018

Codepen demo: https://codepen.io/mor10/pen/zWmdPN

Short description: If grid columns are defined using fr units and a column contains a select element with a very long option text, the length of the option text defines the width of the grid column, regardless of the width of the select element and whether select { max-width: 100%; } is set.

@mor10
Copy link
Author

mor10 commented Apr 6, 2018

Solution:

set min-width: 0; on the container holding the select box.

Still curious why the width of the options element forces the width of the grid column. It obviously interacts with the bounding box in some way, but that interaction is not available anywhere. Style inspector panels still only show the box as the displayed with of the select element while grid interprets it as the width of options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant