herman
herman

Reputation: 12305

Long labels for input components in Vaadin

I have a Vaadin 22 application that features a view that has 2 Select fields next to each other. They belong together (are actually dropdowns for month and year) and they require only a single label, which is longer than the component on the left.

I've tried to put it on the left component but then it gets cut off:

enter image description here What is the easiest way to accomplish this?

Upvotes: 1

Views: 86

Answers (1)

Jouni
Jouni

Reputation: 2918

It seems you might want to try the Custom Field component for this.

Another alternative is to customize the CSS a bit:

vaadin-select::part(label) {
  overflow: visible;
}

Upvotes: 5

Related Questions