Bug 488466 - Settings dialog has no minimum width and height
Summary: Settings dialog has no minimum width and height
Status: REPORTED
Alias: None
Product: kweather
Classification: Applications
Component: general (show other bugs)
Version: 24.05.0
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 488468 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-13 20:01 UTC by nikolas.gur
Modified: 2024-06-14 00:48 UTC (History)
2 users (show)

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


Attachments
Resizing settings into the void (346.73 KB, video/webm)
2024-06-13 20:01 UTC, nikolas.gur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nikolas.gur 2024-06-13 20:01:09 UTC
Created attachment 170483 [details]
Resizing settings into the void

SUMMARY
The settings dialog does not have minimum values for width and height set, so it's possible to resize it until there's only a small strip left.

STEPS TO REPRODUCE
Open the Settings panel and resize the window by moving the mouse cursor to one of the 4 corners and drag

OBSERVED RESULT
The window including the titlebar and the window control buttons disappears

EXPECTED RESULT
Just like in the main application window, it should not be possible to make the window smaller than a fixed threshold. At least the titlebar and some part of the application should remain visible. The QT application Kasts (https://flathub.org/apps/org.kde.kasts) has a similar settings dialog with minimum width and height set, so it might be possible to copy code from there.

SOFTWARE/OS VERSIONS
Arch Linux with Gnome 46 on Wayland and Version 24.05.0 installed from Flathub.
Comment 1 duha.bugs 2024-06-13 21:44:37 UTC
Cannot reproduce, it has a minimum width + height here: Arch, Plasma, Wayland, installed from flatpack.

I wonder if this is gnome specific (not sure how though)?
Comment 2 nikolas.gur 2024-06-13 22:28:28 UTC
(In reply to duha.bugs from comment #1)
> I wonder if this is gnome specific (not sure how though)?

Seems like this really might be the case.
I reported the same bug for Haruna (https://bugs.kde.org/show_bug.cgi?id=488468), since I observed the exact same behaviour there. A user confirms (https://bugs.kde.org/show_bug.cgi?id=488468#c1) that this issue occurs on Gnome Wayland, but not on Plasma.

Strange that it seems to be application specific despite all of them are using QT, on top of that.

Trying a bunch of KDE apps from flathub:

Windows have no minimum size:
KWeather - Dialogs
Haruna - Dialogs
Peruse (Comic Book Reader) - Main Window
Konversation - Main Window

Windows have minimum size set everywhere, main window and dialogs:
Kasts
Okular
Dolphin
Marknote
Koko (Photos)
KWrite
KCalc
Comment 3 duha.bugs 2024-06-13 23:25:36 UTC
*** Bug 488468 has been marked as a duplicate of this bug. ***
Comment 4 duha.bugs 2024-06-13 23:29:56 UTC
Hmm both qt quick and qt widget apps seems to be affected. Can you check if this is also an issue with the system package or only flatpack? 
Does the same issue appear under X11?

This should probably moved somewhere else than kweather, but I am unsure where.
Comment 5 nikolas.gur 2024-06-14 00:29:29 UTC
(In reply to duha.bugs from comment #4)
> Can you check if
> this is also an issue with the system package or only flatpack? 
> Does the same issue appear under X11?

I installed now Plasma alongside Gnome on the same machine for further comparisons. I'm testing "KWeather"

When using Gnome, I always get this bug. It doesn't matter whether on X11 or Wayland, and whether native or Flatpak.

When running Plasma on X11, I always get this bug (Doesn't make a difference whether its native or Flatpak)

When on Plasma (wayland) using the native package, I *don't* get this error and resizing stops at the right size.

When on Plasma (wayland) using Flatpak, I get the described bug and the terminal spams 

qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:341:18: QML ScrollView: Binding loop detected for property "calculatedImplicitHeight"

when resizing the window to a smaller size than it's supposed to be. This line doesn't appear when running the native package, only Flatpak.

So the only combination that seems to work is Plasma, Wayland, native package.
Comment 6 nikolas.gur 2024-06-14 00:48:48 UTC
Regarding the irc chat app Konversation, the situation is slightly different (that's where i had this bug in the main window, but not the dialogs):

On Plasma Wayland, both the native and the Flatpak version don't have this bug! But the rest is the same. Every other combination with Plasma X11, Gnome X11 & Gnome Wayland and Native / Flatpak does have this bug. I also don't get any terminal output when resizing the flatpak version.