cancel
Showing results for 
Search instead for 
Did you mean: 

Scrollbar for sap.m.Select

Former Member
0 Kudos

How to get a (Edit: vertical) scrollbar in a `sap.m.Select`?

I have a popover, in which I have a dropdown menu ('Select').

The popover has a specific height (15rem), which the dropdown menu shouldn't exceed.

I ideally would like to have a scrollbar dynamically added to the sap.m.select, when it has more than 5 options to select from. How can I achieve this, since there is no such property in the docu.

Accepted Solutions (1)

Accepted Solutions (1)

gowrinath_gundu
Participant

Hi Jakob,

You can include the dropdown control inside a scroll bar. Set the scroll bar type less than your pop over height and type of scrolling to vertical. Try searching for sap.m.scrollbar in sdk.

Regards,

Gowrinath

Former Member
0 Kudos

I'm trying to get the scrollbar inside of the dropdown menu.

gowrinath_gundu
Participant
0 Kudos

Hi Jakob,

If you are able to solve this, please mark this as answered.

Regards,

Gowrinath

Answers (1)

Answers (1)

former_member340030
Contributor

Hi Jakob ,

Can you try using maxWidth property of sap.m.select. By default its value is 100%, just reduce it and check that horizontal scroll bar is coming or not.

thanks

Viplove

Former Member
0 Kudos

I'm sorry, I confused horizontal with vertical. How to get a vertical scrollbar?

former_member340030
Contributor

As sap.m lib is reponsive , so vertical scrollbar comes with container height(in which drop down is placed) and that is automatic. There is nothing like it should come after 5 values of the dropdown

thanks

Viplove