Skip to content

[Bug]: Panel bottom edge gets cut off when all spacers are transparent #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 of 6 tasks
AnicJov opened this issue Feb 28, 2025 · 8 comments
Closed
3 of 6 tasks
Labels
bug Something isn't working

Comments

@AnicJov
Copy link

AnicJov commented Feb 28, 2025

I have:

Install method used:

  • Using Plasma's "Add new widget" (KDE Store)
  • AUR
  • Nix package
  • Manually from the latest source code

Bug Description
When setting all spacers to transparent or disabled background & foreground in either the Preset Overrides or Global Overrides the panel's bottom edge gets cut off. As shown in the attached video and image.

Steps to reproduce

  1. Add a floating panel on the top of the screen.
  2. In Appearance, disable the panel background and configure widgets to have a background.
  3. In Global Overrides, create a new override which disables the background.
  4. Set all spacer widgets to use the new override.

Observed Result
The bottom edge of the panel gets cut off.

Expected Result
The bottom edge of the panel doesn't get cut off and stays the same as when the spacers have a background.

Screenshots

Image

Image

issue.mp4

System information (please complete the following):

Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 62.7 GB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080

Additional context
I can confirm that this issue was not present in version 0.5.2 as I have that one running on another machine. This only started happening in versions >= 2.0

If you know if there is a way to fix this in my config please let me know, or if you need any additional info or assistance.
Thanks.

@AnicJov AnicJov added the bug Something isn't working label Feb 28, 2025
@luisbocanegra
Copy link
Owner

Looks like you have a negative margin somewhere. Can you attach a screenshot of the panel settings?

I am unable to reproduce after loading your file. Does the bug persist if you log out and back in?

@luisbocanegra
Copy link
Owner

luisbocanegra commented Feb 28, 2025

https://gist.github.com/AnicJov/5a2ed9552c0e75a8a7220fac8ff5d199#file-settings-json-L75 That's the only negative margin in your config. But it's supposed to be disabled... maybe is a bug, what happens if you enable it and change it to a positive value?

This is how it looks for me if I enable that in your config

Image

@AnicJov
Copy link
Author

AnicJov commented Feb 28, 2025

Changing the negative margin to 0 did nothing, disabling it again did nothing, and restarting the system didn't help.

And yes, this is persistent, it's been like this for a while. What prompted me to submit the issue is that today I found out that removing the override for the spacers made the problem go away so I figured it had to be a bug and not an issue with my configuration.

Here are my plasma panel settings:

Image

Note that the issue is still there no matter the settings I use for the plasma panel.

@luisbocanegra
Copy link
Owner

Can you check if the bug also happens on wayland?

Also, can you try restoring the default appearance and create a new preset with just enough options to reproduce.

@AnicJov
Copy link
Author

AnicJov commented Mar 1, 2025

The bug does not happen on wayland! Another reason for me to ditch X11.

I tried restoring default appearance (on X11) and I couldn't replicate the issue. However I also can't figure out how to recreate the padding I had on the widgets. I believe I started from a built-in preset originally for this reason.

It seems like it's a weird edge case with the config I had.

@luisbocanegra
Copy link
Owner

luisbocanegra commented Mar 1, 2025

However I also can't figure out how to recreate the padding I had on the widgets. I believe I started from a built-in preset originally for this reason.

If you want widgets to have padding on the sides you can use the margin option, should be called padding too but vertically acts like a margin, sorry if it's too confusing maybe I can add a text to clarify that.

@luisbocanegra
Copy link
Owner

It seems like it's a weird edge case with the config I had.

Probably, margin and padding were one of the hardest things to get working due to the inner workings of the panel grid not being very flexible in Qt

@AnicJov
Copy link
Author

AnicJov commented Mar 1, 2025

Yeah, so feel free to do with the issue as you see fit, close, mark as can't reproduce, or whatever, since the issue is pretty much resolved for me and I don't think many users will encounter this.
And thank you for your help and the continued work on this essential plasma widget, greatly appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants