Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Combo popup width incorrect. #257

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From my pic you can see that I dont have a scrollbar. From my pic you can also 
see the extra orange space on the right. This is because of the following code.

combobox::protected Command showPopupDialog(Dialog popupDialog, List l)

...
...
listW = Math.min(listW + 
getUIManager().getLookAndFeel().getVerticalScrollWidth(), 
parentForm.getContentPane().getWidth());

The scrollwidth was calculated. but the pic shows no scrollbar. That extra bit 
of orange on the right looks ugly.

Original issue reported on code.google.com by jkoo...@gmail.com on 12 Jul 2012 at 4:38

Attachments:

GoogleCodeExporter commented 9 years ago
We won't fix that since that requires reflow which is remarkably expensive and 
buggy. At this point in the code we have no way of knowing if a scrollbar will 
appear.

Original comment by shai.almog on 13 Jul 2012 at 3:58