Skip to main content

Scroll bar in ComboboxList

1 reply [Last post]
mixaz
Offline
Joined: 2009-09-04
Points: 0

Hi,

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.

Mike

Reply viewing options

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

Well it seems to be the same issue as http://www.java.net/forum/topic/mobile-embedded/lwuit/how-change-checkboxs-popup-size

I'll watch it there then.