~eliasnaur/gio

1

Expanding Slider widget

Details
Message ID
<MQSKUnH--3-2@tutanota.com>
DKIM signature
pass
Download raw message
I've been practicing Timer task (https://eugenkiss.github.io/7guis/tasks/#timer) from 7 gui tasks and don't found a way to expand Slider widget. 

MCVE:

https://pastebin.com/nscSbPeQ

I want that Slider widget occupy all free space to right like ProgressBar already does. 
How it to do better?
Details
Message ID
<CANtNKfoE-m5F4r455EAFX1_5QDQ8zGi-b9zh5FpGO-KqL2OOUw@mail.gmail.com>
In-Reply-To
<MQSKUnH--3-2@tutanota.com> (view parent)
DKIM signature
pass
Download raw message
I recently implemented timer example in
https://git.sr.ht/~eliasnaur/gio-example/tree/main/item/7gui/timer

But, you are using `layout.Rigid` for the slider and progressbar,
whereas it should use `layout.Flexed`.

Without exact constraints, different widgets try to guess how much space to use.

On Thu, Jan 7, 2021 at 4:52 PM <rimebeliskner@tutanota.com> wrote:
>
> I've been practicing Timer task (https://eugenkiss.github.io/7guis/tasks/#timer) from 7 gui tasks and don't found a way to expand Slider widget.
>
> MCVE:
>
> https://pastebin.com/nscSbPeQ
>
> I want that Slider widget occupy all free space to right like ProgressBar already does.
> How it to do better?
Reply to thread Export thread (mbox)