Ralf Sternberg schrieb:
> Hi Sebastian,
> 
> Sebastian Werner schrieb:
>>> I have the following code in my appearance theme for the "list-item" 
>>> appearance:
>>>
>>>   if( states.selected ) {
>>>     result.textColor = "highlighttext";
>>>     result.backgroundColor = states.focused ? "colorX" : "colorY";
>>>   }
>>>   ...
>>>
>>> This does not work properly anymore, as states.focused seems only to be 
>>> set when a selected item in a previously unfocused list is clicked. 
>>> Changing the selection in a list (focused or not) always results in colorY.
>>>
>>> I also noticed that states.focused does not occur in your appearance 
>>> theme anymore.
>> This seems to work well here. What browser do you have used? Please 
>> update to r7848 and try it again.
>>
>> The state "focused" is definitely supported - even if not used.
> 
> Maybe it's a misunderstanding about the meaning of the state focused for 
> items. For a ListItem, does "focused" indicate thatthe  List that 
> contains the item is currently focused or does it mean that the Item 
> itself is focused? I expect the first, as a ListItem cannot take focus 
> itself. Am I wrong about this?

Currently the item can get the focus. But I think that this is something 
we need to change sometimes in my opinion. Currently I would say this is 
again a topic for 0.8.

> 
> One strange thing that maybe causes the trouble is that a List loses 
> focus when one of its ListItems is clicked. Is this considered normal in 
> qooxdoo?

Currently - yes.

Sebastian

> 
> Thanks,
>    Ralf
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to