listcontrol scrollbar not working? (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Hi

    I'm trying to get the scrollbar on my skin working, but how do I position the top/bottom/background part of the scrollbar? As far as I can tell from the sourcecode of MediaPortal, it should be calculated automatically. There is no mention of width/height of the elements in the Wiki or the sourcecode, and the background of the scrollbar is scaled while the top/bottom is not.

    The result is this:

    not-pretty.png

    Here we have the top, the background, and the bottom. Look how the background is scaled in width, even though all the files are same width, 20px.

    I set the controls in references.xml under default listcontrol:

    Code:
    	<scrollbarbg>bar_vert.png</scrollbarbg>
    	<scrollbartop>bar_vert_top.png</scrollbartop>
        <scrollbarbottom>bar_vert_bottom.png</scrollbarbottom>

    If this is not working because of designchanges or codechanges I would really like it to be fixed.

    Help!
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #2
    I guess I'll have to answer this one myself:

    Properties "scrollbartop" and "scrollbarbottom" are mislabeled and should be "scrollbarleft" and "scrollbarright" as this is the way they are placed on screen. After dividing the graphics vertically instead of horizontally, it works. Another mishap is that the scrollbarbg is automatically scaled to be 15px wide, no more, no less.

    I would file this as a bugreport but changing this would probably render all skins faulty or not at all. Sucks to be me and having to read the sourcecode with a calculator next to me to try and position this right, when there is a major misnaming like this :(
     

    Users who are viewing this thread

    Top Bottom