[fixed] - myHome horizontal menu-width not scaled to resolution

Discussion in 'MediaPortal 1.2.0 ALPHA' started by pilehave, February 14, 2011.

  1. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    Using SVN 27452 my experience is, that the value buttonWidth is not scaled to skin-size when using the horizontal menu as shown in the attached screenshot. This menu is created in myHome.xml where you can have either a vertical or a horizontal menu.

    The screenshot shows the following horizontal menu:

    Code (Text):
    1.  
    2. <control>
    3.     <description>Menu</description>
    4.     <type>menu</type>
    5.     <animation effect="fade" time="300">WindowOpen</animation>
    6.     <animation effect="fade" time="300">WindowClose</animation>
    7.     <id>50</id>
    8.     <posX>0</posX>
    9.     <posY>750</posY>
    10.     <width>1920</width>
    11.     <textcolor>ffffffff</textcolor>
    12.     <textColorNoFocus>ffa9d0f7</textColorNoFocus>
    13.     <textAlign>center</textAlign>
    14.     <dimColor>80ffffff</dimColor>
    15.     <buttonTextXOff>0</buttonTextXOff>
    16.     <buttonTextYOff>0</buttonTextYOff>
    17.     <buttonOffset>0</buttonOffset>
    18.     <buttonFont>main_large</buttonFont>
    19.     <buttonHeight>100</buttonHeight>
    20.     <buttonWidth>260</buttonWidth>
    21.     <spaceBetweenButtons>0</spaceBetweenButtons>
    22.     <numberOfButtons>5</numberOfButtons>
    23.     <textureButtonFocus>blue_background.png</textureButtonFocus>
    24.     <textureButtonNoFocus>black.png</textureButtonNoFocus>
    25.     <hoverX>2000</hoverX>
    26.     <scrollTime>120</scrollTime>
    27.     <scrollTimeMin>50</scrollTimeMin>
    28.     <textureBackground>emtpy.png</textureBackground>
    29.     <onright>50</onright>
    30.     <onleft>10</onleft>
    31.     <horizontal>yes</horizontal>
    32. </control>
    33.  
    As you can see, buttonHeight is set to 100, and scaled down when window is scaled down. buttonWidth remains the 260 value even if the window is resized.

    I'll try and look at the code, this is definitely not good from a skinners perspective.

    [EDIT]
    Patch posted in https://forum.team-mediaportal.com/...ntal-menu-not-scaled-x-axis-93537/#post714856


     

    Attached Files:

  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. SilentException
    • Team MediaPortal

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    Your patch is in r27525, marked as fixed, thanks :)
     
    • Like Like x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!