Bug 415811 - Dock's size changes continuously
Summary: Dock's size changes continuously
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: containment (show other bugs)
Version: git (master)
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-02 16:28 UTC by trmdi
Modified: 2022-03-05 09:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2020-01-02 16:28:14 UTC
SUMMARY


STEPS TO REPRODUCE
1. Use this layout: https://store.kde.org/p/1245169/
2. Move the bottom dock to the left
3. Add/Remove the Folder widget to the left dock

OBSERVED RESULT
https://streamable.com/w29xv
Comment 1 Michail Vourlakos 2020-01-02 16:50:42 UTC
1. What is your Latte version?
2. Didnt stop after 2-3 growings / shrinks?
Comment 2 trmdi 2020-01-02 16:56:44 UTC
(In reply to Michail Vourlakos from comment #1)
> 1. What is your Latte version?
> 2. Didnt stop after 2-3 growings / shrinks?

1. The latest git version.
2. Yes, it never stops.
Comment 3 Michail Vourlakos 2020-01-02 17:20:46 UTC
This is gonna be fun..
Probably crazy metrics from the applet between compact representation and full representation...
Comment 4 trmdi 2020-01-03 15:15:29 UTC
When the dock's dancing, I see a lot of these messages from the debug:

>[warning 22:09:33.949949] - file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/applet/AppletItem.qml:767:13: QML ItemWrapper: Binding loop detected for property "appletMinimumHeight"
>[warning 22:09:33.9595] - file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/applet/ItemWrapper.qml:420:5: QML QQuickItem*: Binding loop detected for property "height"
>[warning 22:09:35.992992] - trying to show an empty dialog
>[warning 22:09:36.691691] - file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/applet/AppletItem.qml:767:13: QML ItemWrapper: Binding loop detected for property "appletMinimumHeight"
>[warning 22:09:36.692692] - file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/applet/ItemWrapper.qml:420:5: QML QQuickItem*: Binding loop detected for property "height"
>[warning 22:09:38.808808] - trying to show an empty dialog
>[warning 22:09:39.556556] - file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/applet/AppletItem.qml:767:13: QML ItemWrapper: Binding loop detected for property "appletMinimumHeight"
>[warning 22:09:39.557557] - file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/applet/ItemWrapper.qml:420:5: QML QQuickItem*: Binding loop detected for property "height"
>...
Comment 5 Michail Vourlakos 2020-01-03 17:39:52 UTC
(In reply to trmdi from comment #0)
> SUMMARY
> 
> 
> STEPS TO REPRODUCE
> 1. Use this layout: https://store.kde.org/p/1245169/
> 2. Move the bottom dock to the left
> 3. Add/Remove the Folder widget to the left dock
> 
> OBSERVED RESULT
> https://streamable.com/w29xv

sorry I tried to reproduce in my system and I can not... the calculations probably are not the same between our systems, different screen resolution...
Comment 6 trmdi 2020-01-04 04:19:19 UTC
(In reply to Michail Vourlakos from comment #5)
> (In reply to trmdi from comment #0)
> > SUMMARY
> > 
> > 
> > STEPS TO REPRODUCE
> > 1. Use this layout: https://store.kde.org/p/1245169/
> > 2. Move the bottom dock to the left
> > 3. Add/Remove the Folder widget to the left dock
> > 
> > OBSERVED RESULT
> > https://streamable.com/w29xv
> 
> sorry I tried to reproduce in my system and I can not... the calculations
> probably are not the same between our systems, different screen resolution...

Weird. Could you try the screen resolution to 1366x768 ?
And when trying to reproduce it, do not have any maximized window.
Another thing is the issue only happens when the dock has a Folder widget.
Comment 7 Michail Vourlakos 2020-01-04 13:05:21 UTC
(In reply to trmdi from comment #6)
> (In reply to Michail Vourlakos from comment #5)
> > (In reply to trmdi from comment #0)
> > > SUMMARY
> > > 
> > > 
> > > STEPS TO REPRODUCE
> > > 1. Use this layout: https://store.kde.org/p/1245169/
> > > 2. Move the bottom dock to the left
> > > 3. Add/Remove the Folder widget to the left dock
> > > 
> > > OBSERVED RESULT
> > > https://streamable.com/w29xv
> > 
> > sorry I tried to reproduce in my system and I can not... the calculations
> > probably are not the same between our systems, different screen resolution...
> 
> Weird. Could you try the screen resolution to 1366x768 ?
> And when trying to reproduce it, do not have any maximized window.
> Another thing is the issue only happens when the dock has a Folder widget.

My monitor does not have that resolution, I tried with 1024x768 that has the same height so it should be reproducable... The Folder View plasma widget is creating plenty of issues with Latte... Only way to make it workable at an extent is to set the MAX PANEL ICON SIZE == 256px. to do so you can try:

1. edit : ~/kdeglobals -> [PanelIcons]
2. set, Size=256
3. restart your desktop
Comment 8 Michail Vourlakos 2020-01-04 13:06:36 UTC
why this is needed is explained a bit at: https://bugs.kde.org/show_bug.cgi?id=410430
Comment 9 trmdi 2020-01-04 15:18:51 UTC
But is there any way to make Latte stop dancing at the set item size?
The dock could display like how the Plasma panel does: https://i.imgur.com/Gzng4bZ.png
Comment 10 Michail Vourlakos 2020-01-04 15:40:28 UTC
(In reply to trmdi from comment #9)
> But is there any way to make Latte stop dancing at the set item size?
> The dock could display like how the Plasma panel does:
> https://i.imgur.com/Gzng4bZ.png

Latte is just providing a size and the applet is adjusting. But that particular applet is changing its layout sizes so the circle starts over again...
Comment 11 trmdi 2020-01-04 15:49:10 UTC
(In reply to Michail Vourlakos from comment #10)
> (In reply to trmdi from comment #9)
> > But is there any way to make Latte stop dancing at the set item size?
> > The dock could display like how the Plasma panel does:
> > https://i.imgur.com/Gzng4bZ.png
> 
> Latte is just providing a size and the applet is adjusting. But that
> particular applet is changing its layout sizes so the circle starts over
> again...

Why doesn't it happen when I place the dock at the bottom?
Comment 12 Michail Vourlakos 2020-01-04 15:53:11 UTC
(In reply to trmdi from comment #11)
> (In reply to Michail Vourlakos from comment #10)
> > (In reply to trmdi from comment #9)
> > > But is there any way to make Latte stop dancing at the set item size?
> > > The dock could display like how the Plasma panel does:
> > > https://i.imgur.com/Gzng4bZ.png
> > 
> > Latte is just providing a size and the applet is adjusting. But that
> > particular applet is changing its layout sizes so the circle starts over
> > again...
> 
> Why doesn't it happen when I place the dock at the bottom?

Just a matter of calculations and maximum length in pixels, it can happen to bottom also, or just the folder view applet is changing its layout sooner for vertical panels
Comment 13 Michail Vourlakos 2020-01-04 16:02:34 UTC
what is your size in ~/.config PanelIcons section?
in order to try to reproduce again...
Comment 14 trmdi 2020-01-04 16:06:35 UTC
(In reply to Michail Vourlakos from comment #13)
> what is your size in ~/.config PanelIcons section?
> in order to try to reproduce again...

I don't have it.
Comment 15 Michail Vourlakos 2020-01-04 16:12:26 UTC
(In reply to trmdi from comment #14)
> (In reply to Michail Vourlakos from comment #13)
> > what is your size in ~/.config PanelIcons section?
> > in order to try to reproduce again...
> 
> I don't have it.

I tried again no success, I can not reproduce, btw my assumptions were correct, the folder view widget is changing between CompactRepresentation and FullRepresentation only for vertical panels, for horizontal panels it stays in icon mode
Comment 16 trmdi 2020-01-04 16:17:44 UTC
(In reply to Michail Vourlakos from comment #15)
> (In reply to trmdi from comment #14)
> > (In reply to Michail Vourlakos from comment #13)
> > > what is your size in ~/.config PanelIcons section?
> > > in order to try to reproduce again...
> > 
> > I don't have it.
> 
> I tried again no success, I can not reproduce, btw my assumptions were
> correct, the folder view widget is changing between CompactRepresentation
> and FullRepresentation only for vertical panels, for horizontal panels it
> stays in icon mode

You could add my resolution 1366x768 like this: https://askubuntu.com/questions/377937/how-to-set-a-custom-resolution
Then try reproducing it again.
Comment 17 Michail Vourlakos 2020-01-04 16:19:21 UTC
(In reply to trmdi from comment #16)
> (In reply to Michail Vourlakos from comment #15)
> > (In reply to trmdi from comment #14)
> > > (In reply to Michail Vourlakos from comment #13)
> > > > what is your size in ~/.config PanelIcons section?
> > > > in order to try to reproduce again...
> > > 
> > > I don't have it.
> > 
> > I tried again no success, I can not reproduce, btw my assumptions were
> > correct, the folder view widget is changing between CompactRepresentation
> > and FullRepresentation only for vertical panels, for horizontal panels it
> > stays in icon mode
> 
> You could add my resolution 1366x768 like this:
> https://askubuntu.com/questions/377937/how-to-set-a-custom-resolution
> Then try reproducing it again.

it is not the resolution, I have 1024x768 and it should behave the same, it returns the same metrics for maximum length
Comment 18 trmdi 2020-01-04 16:24:40 UTC
(In reply to Michail Vourlakos from comment #17)
> (In reply to trmdi from comment #16)
> > (In reply to Michail Vourlakos from comment #15)
> > > (In reply to trmdi from comment #14)
> > > > (In reply to Michail Vourlakos from comment #13)
> > > > > what is your size in ~/.config PanelIcons section?
> > > > > in order to try to reproduce again...
> > > > 
> > > > I don't have it.
> > > 
> > > I tried again no success, I can not reproduce, btw my assumptions were
> > > correct, the folder view widget is changing between CompactRepresentation
> > > and FullRepresentation only for vertical panels, for horizontal panels it
> > > stays in icon mode
> > 
> > You could add my resolution 1366x768 like this:
> > https://askubuntu.com/questions/377937/how-to-set-a-custom-resolution
> > Then try reproducing it again.
> 
> it is not the resolution, I have 1024x768 and it should behave the same, it
> returns the same metrics for maximum length

And maybe it depends on the icon theme, I can reproduce it with McMojave-circle-dark icon theme, but not with Breeze.
Comment 19 Michail Vourlakos 2022-03-05 09:29:55 UTC
I think this is fixed from AutoSizer history checks...