This panel sometimes will not always align to the right

I would like to report a bug, but I am not sure how to file it properly. When I tried to submit it, I saw a recommendation saying, “When in doubt, post in Discuss,” which made me unsure where this should go.

Issue Description

The panel (which I use as a taskbar, similar to the Windows taskbar) sometimes behaves unexpectedly.

Occasionally, it leaves an empty space on the right side. At other times, it extends past the screen boundary and appears on the next monitor to the right. When this happens, a rectangular black bar appears, which initially made me think my second monitor was damaged.

The issue occurs intermittently, and I have not yet identified reliable steps to reproduce it.

Setup

  1. Running on Nobara
  2. I have two monitors, this widget is located in the left monitor.
  3. The monitor where the widget is located is in 1080, the second monitor is 1440

image

do you have a panel on the right vertical edge of the left monitor?

one that is perhaps twice as thick as the bottom panel?

these panels will stake out screen edge real estate and they can end up fighting over corners in come cases.

No, I only have one panel in my desktop.

in the panel configuration do you have it set to “fit content” or it is set to “full”?

Position: Bottom
Alignment: Right
Width: Fit Content
Visibility: Always visible
Opacity: Adaptive
Floating: Panel and applets

the fit content is your issue… it’s resizing the panel based upon what it contains.

if you want the panel to be a fixed size choose something else.

it sounds like a bug. Do i file this?

if align right and fit content are both selected, my expectation would be that regardless of the size of the content, it would hug the right edge of the screen.

does this occur with a default panel and only those settings changed?

can you reproduce it?

does the same behavior occur when the panel not floating?

I can’t reproduce it, because it happens intermittently. Even without interacting with the panel the odd behavior occurs.

have you tried just deleting the panel and building a new one?

further troubleshooting ideas:

selectively remove one widget at a time from the panel as observe if the behavior crops up again and if it does then remove another widget from the panel

perhaps one of the widgets is triggering this behavior (my money is on the clock).

Yes I have. But I have not tried removing widgets. I’ll start with the spacers. But it happens very seldomly that it might be long before I get to reply again.

there’s no timer on these threads.

also be aware that the extra padding you can see in the pic across the clock widget is it’s own separate widget you can remove (at least it was on plasma 5)