Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1816

Control can't have default focus if animation contains a delay

$
0
0
I have the following simple DialogVideoInfo.xml

<window>
  <defaultcontrol always="true">8</defaultcontrol>
  <onload>SetFocus(8)</onload>

  <controls>
    <control type="button" id="8">
      <animation effect="fade" start="0" end="100" time="200" delay="150">WindowOpen</animation>
      <width>340</width>
      <include>InfoButtonTemplate</include>
      <label>&#x25b7; Play</label>
    </control>
  </controls>
</window>

Basically when the DialogVideoInfo is opened there is a small 150ms delay before the button is faded into view, however even with the default control and onload setfocus the control doesn't get focused. However if I remove the delay from the animation then the control focuses fine. This is running on Nexus, haven't test on Matrix.


EDIT:

Fixed by adding:-

<visible allowhiddenfocus="true">true</visible>

to the control, which makes no sense as a faded control should not be treated as hidden.

Viewing all articles
Browse latest Browse all 1816

Trending Articles