2010-01-10, 08:33
This one is a bit hard to explain.
I was working on a skin and was frustrated when I could not center the focused item in a "wraplist" control. (i.e. the focused element stays dead center of the container).
I was able to get around it by making the list 3/5/7/etc times the size of the child element and making "focusposition" = 1/2/3/etc. But this wasn't ideal as I wanted the container to be an different size.
I've submitted a patch to add a "centerfocus" property to "wraplist" and "fixedlist" controls. Setting this to true achieves what I explained above.
When "centerfocus" is set to true "focusposition" adjusts which item is selected by default.
See: http://trac.xbmc.org/ticket/8454
Edit: Screenshot of what I'm trying to explain
I was working on a skin and was frustrated when I could not center the focused item in a "wraplist" control. (i.e. the focused element stays dead center of the container).
I was able to get around it by making the list 3/5/7/etc times the size of the child element and making "focusposition" = 1/2/3/etc. But this wasn't ideal as I wanted the container to be an different size.
I've submitted a patch to add a "centerfocus" property to "wraplist" and "fixedlist" controls. Setting this to true achieves what I explained above.
When "centerfocus" is set to true "focusposition" adjusts which item is selected by default.
See: http://trac.xbmc.org/ticket/8454
Edit: Screenshot of what I'm trying to explain