Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

NativeSelect with Restrain #1

Closed
sevokn opened this issue Feb 5, 2015 · 2 comments
Closed

NativeSelect with Restrain #1

sevokn opened this issue Feb 5, 2015 · 2 comments
Labels

Comments

@sevokn
Copy link

sevokn commented Feb 5, 2015

I am trying to use Restrain to apply minimum widths to NativeSelect components in Vaadin.

When I try to use Restrain on a NativeSelect, the minimum width restriction is applied to the div element that wraps the select element, not the select element itself. So for example, the red "required" asterisk is displayed at the desired width, but the select element stays at the original width as determined by the length of the text of the options in the drop-down of the select element.

Any quick tips for how to make this work, or is a updated version of Restrain needed?

@jouni
Copy link
Owner

jouni commented Feb 5, 2015

You could try and set the width of the select element to 100% using CSS:

.v-select-select {
  width: 100%;
}

@jouni
Copy link
Owner

jouni commented Feb 5, 2015

Components which do not respect the size of their root element are out of scope for the Restrain add-on, and should be fixed in the components themselves.

@jouni jouni added the wontfix label Aug 12, 2015
@jouni jouni closed this as completed Aug 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants