Skip to main content

Scroll bar in ComboboxList

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2009-09-04


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.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2009-09-04

Well it seems to be the same issue as

I'll watch it there then.