mettli / guichan

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

Drop down list looks odd when first dropped down and inside a tabbed area. #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a drop down to a container inside a tabbed area.
2. Drop down the drop down.
3. The list looks really odd, as if the pushed clip area is wrong.

Original issue reported on code.google.com by olof.nae...@gmail.com on 3 Sep 2008 at 1:55

GoogleCodeExporter commented 9 years ago
The problem was caused by two things. Firstly, if a scroll area had zero size 
it 
might return a child area with negative width and height. Secondly, a list box 
only 
called Widget::showWidgetPart on ListBox::setSelected. As this was only done 
once in 
a drop down when the list box inside the drop down was created before the drop 
down 
was dropped down, the child area was zero which lead to the first items being 
displayed incorrectly.

The issue has been fixed by making sure scroll area can't return a child area 
with 
negative width and height, and letting list box call Widget::showWidgetPart on 
each 
logic call.

Original comment by olof.nae...@gmail.com on 3 Sep 2008 at 2:42