- Moderator
- #1
For some reason, a vertical scrollbar was attached to filmstrip. I guess someone never got around to finishing it, the code was really weird
I also decided to fix the horizontal scrollbar, which did not scale when the window did. So the scrollbar would be just as high and wide in 720x576 as in 1920x1080. Not good.
I have added the following new attributes to filmstrip facade:
scrollbarYOff will move the scrollbar a number of pixels up or down, calculated from the posY of the filmstrip-control
scrollbarWidth and scrollbarHeight are added, and can be used to set the size of the scrollbar (just as in coverflow)
The scrollbar now allows for the user to click and hold to navigate the filmstrip or to point and click to move a percentage left or right. It works like a normal scrollbar in any browser and same way as it does in listview etc.
While I was at it, I also fixed a render problem which made images in filmstrip disappear when the window was resized.
I have attached my patch and a screenshot of filmstrip.
EDIT New patch attached, I moved scrollbarfixes to this thread to keep things clean:
https://forum.team-mediaportal.com/...tical-horizontal-scrollbars-93059/#post710074
EDIT 2 Removed scrollbarXOff as I think it should just position in the centre of the filmstrip-control. Also removed the option to show/hide scrollbar, as this IMHO should be up to the settings in MediaPortal Configuration to decide.
New patch attached, old removed.
Example with a screenwide filmstrip
Example with a filmstrip positioned to the right. Scrollbar still centered
I also decided to fix the horizontal scrollbar, which did not scale when the window did. So the scrollbar would be just as high and wide in 720x576 as in 1920x1080. Not good.
I have added the following new attributes to filmstrip facade:
scrollbarYOff will move the scrollbar a number of pixels up or down, calculated from the posY of the filmstrip-control
scrollbarWidth and scrollbarHeight are added, and can be used to set the size of the scrollbar (just as in coverflow)
The scrollbar now allows for the user to click and hold to navigate the filmstrip or to point and click to move a percentage left or right. It works like a normal scrollbar in any browser and same way as it does in listview etc.
While I was at it, I also fixed a render problem which made images in filmstrip disappear when the window was resized.
I have attached my patch and a screenshot of filmstrip.
EDIT New patch attached, I moved scrollbarfixes to this thread to keep things clean:
https://forum.team-mediaportal.com/...tical-horizontal-scrollbars-93059/#post710074
EDIT 2 Removed scrollbarXOff as I think it should just position in the centre of the filmstrip-control. Also removed the option to show/hide scrollbar, as this IMHO should be up to the settings in MediaPortal Configuration to decide.
New patch attached, old removed.
Example with a screenwide filmstrip
Example with a filmstrip positioned to the right. Scrollbar still centered