Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to avoid fix the width of item list box

Hi All,

I have item list box where elements get added or removed by the end user by click of a button

It works fine but the problem is the width of item list box chages depending on the option selected by user.

If user selects an option with many characters and adds to list box then the width increases and if it is deleted then then the width comes back to original size.

I tried fixing the width of the list box but still not able to solve the issue.

Is there any way of fixing the width of the list box so that it wont change depend on the element that is getting added or removed.

Thanks and Regards,


Former Member
Former Member replied


I tried setting the width of 'ItemListBox' to 50px and it works fine for me. Similarly, DropDownByIndex and DropDownByKey also obey property 'width' diligently. NWDS and EP version may play a part here. I'm on NWDS CE 7.1 SR5.

Drawback of setting the width is that if your users add a text wider than your set limit, it may not be visible properly. One way of dealing with this issue is to add a text yourself that takes into consideration maximum possible width of texts that users can add.

Hope this helps.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question