Strange behavior with visible condition
#1
Hello

Got strange behavior with visible Conditions

Some of the Widgets "magicaly" disapear, as soon as Window(favourites) is Active?!?

It took me quiet a bit of Time to figuere out what cause the issue.
(did first tought i miss somewhere a "Window.IsActive()" anywhow, but No! as soon as i removed the visibles for the images between the "Layout-Tags" (itemlayout / focusedlayout), the Widgets stop to disapear while "DialogFavourites.xml" is Active.

But deleting the visible condition cant! be the solution.

Here the mentioned Code Part.

PHP Code:
<include name="WidgetItemLayoutRight">
        <
itemlayout height="265" width="189" condition="Container(9000).Hasfocus(8) | Container(9000).Hasfocus(10) | Container(9000).Hasfocus(9) | Container(9000).Hasfocus(16) | Container(9000).Hasfocus(17) | Container(9000).Hasfocus(18) | Container(9000).Hasfocus(19) | Container(9000).Hasfocus(20) | Container(9000).Hasfocus(21) | [Container(9000).Hasfocus(11) + !Skin.HasSetting(UseThumbViewInRATVShowWidget)]">
            <
control type="image">
                <
posx>2</posx>
                <
posy>0</posy>
                <
width>185</width>
                <
height>261</height>
                <
texture background="true">$INFO[ListItem.Icon]</texture>
                <
aspectratio>stretch</aspectratio>    
                <
alignx>center</alignx>
                <
aligny>bottom</aligny>
                <include 
condition="!Skin.HasSetting(UseBigBordersInWidgets)">DefaultBorderstyle-NF</include>
                <include 
condition="Skin.HasSetting(UseBigBordersInWidgets)">BorderStyle2Borderstyle-NF</include>
                <
visible>[[Container(9000).Hasfocus(8) | Container(9000).Hasfocus(18) | Container(9000).Hasfocus(19)] + Skin.HasSetting(DontShowQuadraticMusicClipThumb)] | Container(9000).Hasfocus(10) | Container(9000).Hasfocus(9) | Container(9000).Hasfocus(16) | Container(9000).Hasfocus(17) | Container(9000).Hasfocus(20) | Container(9000).Hasfocus(21) | [[Container(9000).Hasfocus(8) | Container(9000).Hasfocus(18) | Container(9000).Hasfocus(19)] + !Skin.HasSetting(DontShowQuadraticMusicClipThumb) + IntegerGreaterThan(ListItem.Duration,15)]</visible>
            </
control>
            <
control type="image">
                <
posx>2</posx>
                <
posy>76</posy>
                <
width>185</width>
                <
height>185</height>
                <
texture background="true">$INFO[ListItem.Icon]</texture>
                <
aspectratio>stretch</aspectratio>    
                <
alignx>center</alignx>
                <
aligny>bottom</aligny>
                <include 
condition="!Skin.HasSetting(UseBigBordersInWidgets)">DefaultBorderstyle-NF</include>
                <include 
condition="Skin.HasSetting(UseBigBordersInWidgets)">BorderStyle2Borderstyle-NF</include>
                <
visible>[Container(9000).Hasfocus(8) | Container(9000).Hasfocus(18) | Container(9000).Hasfocus(19)] + !Skin.HasSetting(DontShowQuadraticMusicClipThumb) + !IntegerGreaterThan(ListItem.Duration,15)</visible>
            </
control>
            <
control type="image">
                <
posx>2</posx>
                <
posy>0</posy>
                <
width>185</width>
                <
height>261</height>
                <
texture background="true">$INFO[ListItem.Art(tvshow.poster)]</texture>
                <
aspectratio>stretch</aspectratio>    
                <
alignx>center</alignx>
                <
aligny>bottom</aligny>
                <include 
condition="!Skin.HasSetting(UseBigBordersInWidgets)">DefaultBorderstyle-NF</include>
                <include 
condition="Skin.HasSetting(UseBigBordersInWidgets)">BorderStyle2Borderstyle-NF</include>
                <
visible>Container(9000).Hasfocus(11) + !Skin.HasSetting(UseThumbViewInRATVShowWidget)</visible>
            </
control>
..... 


Did anyone have a Idea??




---

Here is how it looks:

Image

Image
Reply
#2
Container(id).HasFocus(id) are no longer true when favorites have focus.
Reply
#3
Thanks Hitcher!

Did have a vague guess it could go in that direction.

(Will have a look for a Workaround.)
Reply

Logout Mark Read Team Forum Stats Members Help
Strange behavior with visible condition0