Skip to main content

Rendering bug when Combo box is opened

1 reply [Last post]
venu19
Offline
Joined: 2008-07-31

Hi,

Noticed a bug with ComboBox. It only occurs when the combobox(should be a big list so when box is selected the opened box height should be bigger then the screen) is the last component on the screen and when selected, box opens at the top of the actual combo box and then notice the starting element in the box is off the screen some where at the top and the last element is at the top of actual box. So, its missing scrolling functionality and looks like the rendering y position is calculated as openboxY = actualBoxY - openBoxHeight(sum of height of all the elements in the combobox). so, openboxY being negative value when openBoxHeight is greater then actualBoxY.

And also its better to have a functionality where you could say I want to have 'n' elements displayed on screen when combo box opened though the combo box has more then n elements, and then you can scroll through the elements.

Thanks,
Venu.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
this is a known issue. Its being investigated.

Thanks.

> Hi,
>
> Noticed a bug with ComboBox. It only occurs when the combobox
> (should be a big list so when box is selected the opened box height
> should be bigger then the screen) is the last component on the
> screen and when selected, box opens at the top of the actual combo
> box and then notice the starting element in the box is off the
> screen some where at the top and the last element is at the top of
> actual box. So, its missing scrolling functionality and looks like
> the rendering y position is calculated as openboxY = actualBoxY -
> openBoxHeight(sum of height of all the elements in the combobox).
> so, openboxY being negative value when openBoxHeight is greater
> then actualBoxY.
>
> And also its better to have a functionality where you could say I
> want to have 'n' elements displayed on screen when combo box opened
> though the combo box has more then n elements, and then you can
> scroll through the elements.
>
> Thanks,
> Venu.
> [Message sent by forum member 'venu19' (venu19)]
>
> http://forums.java.net/jive/thread.jspa?messageID=290600
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]