Bug 446465 - On X11, Plasma dialogs sometimes get an extra empty area on the bottom
Summary: On X11, Plasma dialogs sometimes get an extra empty area on the bottom
Status: RESOLVED DUPLICATE of bug 464029
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: 5.100.0
Platform: Other Linux
: HI normal
Target Milestone: ---
Assignee: ratijas
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-12-04 10:35 UTC by medin
Modified: 2024-02-07 02:57 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Notification has extra bottom (91.67 KB, image/png)
2021-12-04 10:35 UTC, medin
Details
Notification has extra bottom 2 (213.91 KB, image/png)
2021-12-04 11:47 UTC, medin
Details
Steps to get extra bottom (604.41 KB, video/mp4)
2021-12-04 20:27 UTC, medin
Details
Plasma Dialog - Battery applet resize glitch (48.55 KB, image/png)
2022-11-21 21:14 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-12-04 10:35:45 UTC
Created attachment 144204 [details]
Notification has extra bottom

After deleting files many times the notification starts to have an extra bottom region, see attached image for more info.
Comment 1 medin 2021-12-04 11:47:21 UTC
Created attachment 144207 [details]
Notification has extra bottom 2
Comment 2 Nate Graham 2021-12-04 19:35:55 UTC
I suspect Bug 445516.

If you clear the Plasma SVG cache with `rm -r ~/.cache/*plasma*` does the issue go away? If so, it's Bug 445516.
Comment 3 medin 2021-12-04 20:24:26 UTC
I removed the whole .cache folder then rebooted, but the problem is still persistent, to trigger this bug first you prepare some test files with long (like 100 characters) and short (like 4 characters) filenames, with those different lengths the height of notification will be forced to be recalculated for each file, to force delete notifications to appear even for small files try to first start with deleting a folder with deep recursive tree, then start to play with deleting those test files while alternating the choice between short an long filenames. It seems that the notification height is redrawn and filled after it appears on screen, because I can see clearly on some cases that it glitch while getting smaller or bigger height.
See attached video for more info.
Comment 4 medin 2021-12-04 20:27:32 UTC
Created attachment 144222 [details]
Steps to get extra bottom
Comment 5 ratijas 2022-11-21 21:14:47 UTC
Created attachment 153930 [details]
Plasma Dialog - Battery applet resize glitch

I have reasons to believe that this is not a bug in Notifications applet, but in the Plasma Dialog as a whole. We don't use Plasma Dialogs much, so there is no «proven track record». Notifications, Applets' full representations, Task Manager's previews are probably the only users of Plasma Dialogs.

So, anyway, I found an easy way to reproduce a resize glitch, which I believe is caused by the same error that makes notifications stretchy. Attached screenshot depicts independent (not in systray) Battery & Brightness applet which is located on the top panel (I didn't get such "exciting" results from the bottom one), clicked to expand, and resized horizontally. Seems like what help triggering the glitch is some wrapping element like that inhibitions list on top: the more you shrink it, the taller it gets, so the dialog window has to adapt to any changes produced by content layout process.
Comment 6 Nate Graham 2024-02-07 02:57:55 UTC
Oh, this is actually the same as Bug 464029. Same root cause.

*** This bug has been marked as a duplicate of bug 464029 ***