cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select List max-width and width not working

davidsigleinit
Explorer
1,312

Hello all,

I'm currently having trouble with changing the width of the list that shows when opening a select field. The select has a width of 100% and spans the entire site, just as I want. But when I open the select and the list for it shows all items have a maximum width of 600px.

Changing the max-width or width properties does nothing to change the width of this list and it always stays at a width of 600px.

I'd be grateful if any of you have insight into why the list of the select behaves in such a way and how I can have the list have the same width as the select field.

Cheers

View Entire Topic
davidsigleinit
Explorer
0 Kudos

Found it myself after some more searching and it was this class that needs adjusting:

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please note that "[..] HTML and CSS generated by SAPUI5 isn't part of the public API and may change in patch and minor releases. If you decide to override styles, you need to test and update your modifications each time SAPUI5 is updated. [...] SAP Fiori launchpad apps shouldn't override styles." (Source: Compatibility Rules - SAPUI5)