I have a list of accessories for phones and entry on a list is combination of its materialNumber and a name - sometimes it gets long and exceeds the width of listbox. (Html.ListBoxFor)
I have decided to add horizontal scroll to it but by adding overflow, first attemp was inside element checking in chrome then i added it in code.
@Html.ListBoxFor(model => model.myId, MyModel, new { @id = "my-id :)", @class = "form-control input-md", @size = 9, @style="overflow: auto;"})
As planned the horizontal scroll appeared and worked perfectly until I selected an element. Selected element got cut at the moment where original listbox ends.
Here is a link to fiddle showing the problem : https://jsfiddle.net/yf0cgm9x/ when you select long names they are cutted.
Anyone had a problem like that ?