Issue Details (XML | Word | Printable)

Key: LWUIT-449
Type: Bug Bug
Status: Resolved Resolved
Resolution: Works as designed
Priority: Major Major
Assignee: Unassigned
Reporter: almasproject
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
lwuit

ComboBox popup width

Created: 19/May/11 04:21 AM   Updated: 23/May/11 04:36 AM   Resolved: 23/May/11 04:36 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags:
Participants: almasproject and vprise


 Description  « Hide

ComboBox Popup width is smaller than item width so item is not completely shown.

ComboBox cb = new ComboBox();
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("14654665546");
cb.addItem("1765765");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("16545645");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("14654665546");
cb.addItem("1765765");
cb.addItem("1");
cb.addItem("1");
cb.addItem("1");
cb.addItem("16545645");
cb.addItem("1");

Form f = new Form();
f.setLayout(new TableLayout());

f.addComponent(cb);



vprise added a comment - 23/May/11 04:36 AM

LWUIT is optimized to only check the first 5 rows for size since a list can be infinite.
You can use either setRenderingPrototype() or setListSizeCalculationSampleCount() to let the list/combobox determine a more appropriate width.