StackLayout -> Auto align/invisible not working on "first" item (1 Viewer)

FragKing

Portal Member
November 2, 2008
32
12
Zurich
Home Country
Switzerland Switzerland
It seems that when you have a group using StackLayout(0,Horizontal,true), that Auto alignment for hidden items does work in general, but not for the very first item.

Attached a screenshot with a gap on the first item, which does have conditional visibility, as well as the skin definition for it (using streamed-MP, default listview, Moving-Pictures)

This is related to the following (fixed) bug:
0003241: Auto placing of controls in grouped StackLayout - MediaPortal Bugtracker

MediaPortal Version: 1.2.2
MediaPortal Skin: StreeamedMP
Windows Version: 7 x64 SP1
 

Attachments

  • MP-Bugreport-29012012.png
    MP-Bugreport-29012012.png
    157 KB
  • movingpictures.default.listview.mediainfo.xml
    3.1 KB

catavolt

Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,428
    10,455
    Königstein (Taunus)
    Home Country
    Germany Germany
    AW: StackLayout -> Auto align/invisible not working on "first" item

    Yup, can confirm, encountered the same problem while skinning PureVisionHD Horizon.
     

    FragKing

    Portal Member
    November 2, 2008
    32
    12
    Zurich
    Home Country
    Switzerland Switzerland
    re: StackLayout -> Auto align/invisible not working on "first" item

    OK, seems like this is NOT a bug. The problem was that there was not Thumb file here, so adding +Control.HasThumb(itself) to Visibility mitigated this:

    Before:
    <control>
    <description>720p, 1080i, 1080p</description>
    <type>image</type>
    <id>9799</id>
    <width>100</width>
    <height>32</height>
    <texture>Logos\MediaInfo\#StreamedMP.MediaInfo.Type\Video\#MovingPictures.LocalMedia.videoresolution.png</texture>
    <visible>control.isvisible(50)+facadeview.list</visible>
    <animation effect="fade" time="250" delay="0">WindowClose</animation>
    </control>

    After:

    <control>
    <description>720p, 1080i, 1080p</description>
    <type>image</type>
    <id>9799</id>
    <width>100</width>
    <height>32</height>
    <texture>Logos\MediaInfo\#StreamedMP.MediaInfo.Type\Video\#MovingPictures.LocalMedia.videoresolution.png</texture>
    <visible>control.isvisible(50)+facadeview.list+Control.HasThumb(9799)</visible>
    <animation effect="fade" time="250" delay="0">WindowClose</animation>
    </control>

    You can close this as "NOT BUG", :D
     

    Users who are viewing this thread

    Top Bottom