Bug 445377

Summary: Latte-dock automaticly add a margin around element when the floating feature is used.
Product: [Unmaintained] lattedock Reporter: schul9louis
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.10.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: As asked, this is the layout producing the bug.
As asked a second time, this is the layout producing the bug.

Description schul9louis 2021-11-12 14:09:48 UTC
Created attachment 143484 [details]
As asked, this is the layout producing the bug.

SUMMARY
Latte-dock automaticly add a margin (even if those are set to 0%) around element when the floating feature is used (even when using 0px instead of none).

STEPS TO REPRODUCE
1. Add a new panel
2. Right click on the panel, Edit Panel..., Appearance (advanced setttings)
3. Set the absolute size to the minimum (16px) ; set the margin to the minimum (0%) ; set the screen edge (not sure for the name I'm translating sorry) to at least 0px.

OBSERVED RESULT
The dock seem to have margin around the elements

EXPECTED RESULT
The dock should have a margin of 0% around the elements

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux ( 5.14.16-arch1-1 (64-bit) )
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Comment 1 Michail Vourlakos 2021-11-12 17:23:33 UTC
nope, this works fine in my system
Comment 2 Michail Vourlakos 2021-11-12 17:27:30 UTC
are you on x11 or wayland?
Comment 3 schul9louis 2021-11-12 17:37:59 UTC
(In reply to Michail Vourlakos from comment #2)
> are you on x11 or wayland?

Oh sorry I forgot to say that. I'm on Xorg with an Nvidia gpu.
Comment 4 Michail Vourlakos 2021-11-12 17:39:35 UTC
(In reply to schul9louis from comment #3)
> (In reply to Michail Vourlakos from comment #2)
> > are you on x11 or wayland?
> 
> Oh sorry I forgot to say that. I'm on Xorg with an Nvidia gpu.

no idea yet... it works ok in my system.
Comment 5 schul9louis 2021-11-12 17:47:00 UTC
(In reply to Michail Vourlakos from comment #4)
> (In reply to schul9louis from comment #3)
> > (In reply to Michail Vourlakos from comment #2)
> > > are you on x11 or wayland?
> > 
> > Oh sorry I forgot to say that. I'm on Xorg with an Nvidia gpu.
> 
> no idea yet... it works ok in my system.

I don't understand either, I was using latte-dock with a similar setup on kde neon like a week ago and this wasn't happening. It bother me the most for the upper dock, and when I'm editing it I can clearly see the margin highlited in blue around the widget, however there's only one widget that is not affected "Global menu" and I don't understand why.
Comment 6 Michail Vourlakos 2021-12-23 19:34:17 UTC
show me a full screenshot of your top panel when the margins are shown and describe afterwards what you consider an issue.
Comment 7 schul9louis 2021-12-23 20:12:28 UTC
(In reply to Michail Vourlakos from comment #6)
> show me a full screenshot of your top panel when the margins are shown and
> describe afterwards what you consider an issue.

Here's a link to the screenshot :
https://imgur.com/a/rOuMdqg

As you can see on the screenshot I circled 2 things :
- First : on the top panel, you can clearly see margins above and underneath the "task widget". Those are seens as "big" blue line above and underneath the widget.
- Second : on the right of the screen, I clearly circle the width and length of the margins that should be applied to this panel. Those 2 values are both set to 0px.

Since the width and length value of the margins are both set to 0, there should not be any margin applied to this panel.
As I said before, this issues only appear when I make the panel "float" by increasing the value in the "screen edge" slider.
Comment 8 Michail Vourlakos 2021-12-24 10:37:09 UTC
that screenshot has a lot of weird things in it...
please send me the layout that produced that screenshot.
Comment 9 schul9louis 2021-12-24 10:45:05 UTC
Created attachment 144823 [details]
As asked a second time, this is the layout producing the bug.

This is a different layout from the one that I use when the bug first appeared. However, this bug appear with any layout that use the "floating mode".
Comment 10 Michail Vourlakos 2021-12-24 10:51:43 UTC
(In reply to schul9louis from comment #9)
> Created attachment 144823 [details]
> As asked a second time, this is the layout producing the bug.
> 
> This is a different layout from the one that I use when the bug first
> appeared. However, this bug appear with any layout that use the "floating
> mode".

works fine in my system.

1. Have you tried Latte 0.10.6? and check if this is still valid?
2. How did you install Latte?
3. Another question is why even though Panel Background size is 10%  in your screenshot it appears 100%. What is your plasma theme?
Comment 11 schul9louis 2021-12-24 10:57:50 UTC
(In reply to Michail Vourlakos from comment #10)
> (In reply to schul9louis from comment #9)
> > Created attachment 144823 [details]
> > As asked a second time, this is the layout producing the bug.
> > 
> > This is a different layout from the one that I use when the bug first
> > appeared. However, this bug appear with any layout that use the "floating
> > mode".
> 
> works fine in my system.
> 
> 1. Have you tried Latte 0.10.6? and check if this is still valid?
> 2. How did you install Latte?
> 3. Another question is why even though Panel Background size is 10%  in your
> screenshot it appears 100%. What is your plasma theme?

Wow ... I'm so sorry, you made me realize that this was not a bug but a problem with my plasma theme !
Once again, thanks you and sorry for making you loose your time.
Comment 12 Michail Vourlakos 2021-12-24 10:58:20 UTC
ok found it ... it comes from your plasma theme, you are probably using Roundness...
It works just fine...
Roundness plasma theme when showing ALLCORNERS it requires more than 28px. to be drawn correctly and this is why you see applied margins.
Comment 13 schul9louis 2021-12-24 11:01:11 UTC
(In reply to Michail Vourlakos from comment #12)
> ok found it ... it comes from your plasma theme, you are probably using
> Roundness...
> It works just fine...
> Roundness plasma theme when showing ALLCORNERS it requires more than 28px.
> to be drawn correctly and this is why you see applied margins.

I didn't knew that. I'll adapt my theme, once again, sorry and thanks a lot.