Mailing List Archive

Question about progressbar widget
Hi there.

Trying to understand how to size a progress bar.

it seems to completely ignore the dimension I give, only using the
dimension from the one it's inheriting from.

Example:
I have a progress bar like so:

<progressbar name="progress" from="baseprogressbar">

<area>170,140,100%-20,20</area>

<layout>horizontal</layout>

<style>reveal</style>

</progressbar>


It really makes no difference to which width I provide. Here I have
100%-20, but I could have 10 for all I care and the appearance is identical.

Problem is that if I make my window smaller, then the progress bar sticks
out of it. I can't make it fit within the parent window; I have to define
the parent window size to make the scroll bar fit.


Any experience on this topic that could help me?

Thanks
Re: Question about progressbar widget [ In reply to ]
>________________________________
> From: Jean-Yves Avenard <jyavenard@gmail.com>
>To: Discussion about MythTV theming <mythtv-theming@mythtv.org>
>Sent: Wednesday, 3 July 2013, 3:00
>Subject: [mythtv-theming] Question about progressbar widget
>
>
>
>Hi there.
>
>
>Trying to understand how to size a progress bar.
>
>
>it seems to completely ignore the dimension I give, only using the dimension from the one it's inheriting from.
>
>
>Example:
>I have a progress bar like so:
>        <progressbar name="progress"from="baseprogressbar">
>            <area>170,140,100%-20,20</area>
>            <layout>horizontal</layout>
>            <style>reveal</style>
>        </progressbar>
>
>
>It really makes no difference to which width I provide. Here I have 100%-20, but I could have 10 for all I care and the appearance is identical.
>Problem is that if I make my window smaller, then the progress bar sticks out of it. I can't make it fit within the parent window; I have to define the parent window size to make the scroll bar fit.
>
>
>Any experience on this topic that could help me?
>Thanks
>
>


I remember wrestling with this when I wanted a smaller progress bar on the watch recordings screen. This is what I used in the end :-

http://code.mythtv.org/cgit/mythtv/tree/mythtv/themes/MythCenter-wide/recordings-ui.xml#n430

Hope it helps.

Paul H

_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-theming
Re: Question about progressbar widget [ In reply to ]
thanks for the reply


On 3 July 2013 16:20, Paul Harrison <mythtv@sky.com> wrote:

>
> I remember wrestling with this when I wanted a smaller progress bar on the
> watch recordings screen. This is what I used in the end :-
>
>
> http://code.mythtv.org/cgit/mythtv/tree/mythtv/themes/MythCenter-wide/recordings-ui.xml#n430
>
>
I tried the approach of not inheriting; but then my progress bar looks
very different to the others; I obviously would prefer some consistency
across the board. Especially as my theme is a default one..

issue with size seems to occur when you inherit from another, it seems that
it always use the size of the ancestor...
Re: Question about progressbar widget [ In reply to ]
I'm convinced it's a bug now..

I lodged it
http://code.mythtv.org/trac/ticket/11640