Scroll bar in ComboboxList
When ComboboxList opens, it has vertical scrollbar. I'm trying to get rid of it. I see in source code that it has calculations to open the list without scroll bar, they seem to be correct but for some unclear reasons (for me) the list doesn't fit the dialog and scrolling happens. You can see it in dialog example of LWUITDemo.
In ComboBox.showPopupDialog() I see this code:
int listH = popupDialog.getContentPane().getPreferredH()
+ popupDialogStyle.getPadding(false, TOP) + popupDialogStyle.getPadding(false, BOTTOM);
if I add
listH += 20;
then the scroll bar disappears.
I believe something else needs to be considered in height calculations, but I do not know what.