question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mirror widgets do not stretch

See original GitHub issue

The issue:

I want do share the bar on all screens of the system. Because Its a laptop, the number of screens is variable.

Qtile Version: 0.21.0 Qtile Log: does not show a new error.

I began with the following attempt:


common_bar = [widget.Sep(), widget.Image(), widget.GroupBox(),  ..., widget.Promt(), widget.Spacer(), widget.WindowName(), ..., widget.CurrentLayoutIcon(), widget.Systray(),...]

screens = [
    Screen(top=bar.Bar(common_bar), 26, background=background),
    Screen(top=bar.Bar(common_bar), 26, background=background),
]

The bar is shown, but:

  • not correct (stuff is missing)
  • systray crashed
  • some widget are on Screen 1 and two half widgets are on display 0.

Required:

  • I have searched past issues to see if this bug has already been reported.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Meresmatacommented, Aug 16, 2022

Ah. I see the issue: because you’re using the same widget instances, you get Mirror objects in your second bar.

The WindowName widget in your first bar fills the empty space in the bar but, in the second, as it’s now a Mirror it copies the length from the first bar, rather than filling the space in the second bar (you’ll see they both have widths of 1118).

As a quick fix, you could take out the WindowName widget from your second bar and replace it with a new instance.

That’s a great hint. Helped alot!

0reactions
elParaguayocommented, Aug 16, 2022

I can look at a fix to ensure that spacing properties are preserved for Mirror widgets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter: Live Mirror Content of Widget to another Widget
I'm trying to live copy the content 1:1 to another widget. Is there some Widget that already has this functionality?
Read more >
Image Widgets - Axure Docs
To prevent the image widget from resizing, select it and double-click one of its resize handles before importing an image file. The resize...
Read more >
Munchkin Brica Magnetic Stretch to Fit Sun Shade and 360 ...
Extra-large adjustable car mirror lets you see baby while you drive – mirror measures 11.25" x 8". 14 x 28-inch shade stretches to...
Read more >
Size inside flexbox - CodeMirror
I'm trying to get CodeMirror widget size following a flexbox layout, so stretching with window is resizing, but I don't want thet the...
Read more >
Mirror Widget from SiteOrigin cannot be translated using ATE
I tried to resize the picture both at the mirror widget end and the page editor end, but no joy. In the html...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found