Commit 4a65dcef authored by Konrad Materka's avatar Konrad Materka
Browse files

[SystemTray] Set maximum size to block tiling

System tray dialog/popup can be tiled. This should not be allowed, in this case expanded representaiton should have fixed size. When tiled, it is no longer possible to restore original size.
This also applies to other plasmoids.

BUG: 386551
FIXED-IN: 5.18.0

Test Plan:
1. Open any applet from system tray (for example Clipboard or hidden items)
2. Use shortcut to tile window (by default Meta + Left/Righ/...)
3. Applet will change size and tile at the borded of the screen
4. Expected:
a) before fix: allowed and not possible to restore size
b) after fix: not allowed or restores size on next open

Reviewers: #plasma_workspaces, #plasma, davidedmundson, broulik, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent 69786a1f
......@@ -33,6 +33,8 @@ Item {
property int _minimumHeight: units.gridUnit * 14
Layout.preferredWidth: _minimumWidth
Layout.preferredHeight: _minimumHeight * 1.5
Layout.maximumWidth: Layout.preferredWidth
Layout.maximumHeight: Layout.preferredHeight
readonly property bool showAgenda: PlasmaCalendar.EventPluginsManager.enabledPlugins.length > 0
......@@ -32,7 +32,9 @@ ColumnLayout {
Layout.minimumWidth: units.gridUnit * 24
Layout.minimumHeight: units.gridUnit * 21
Layout.preferredWidth: Layout.minimumWidth
Layout.preferredHeight: Layout.minimumHeight * 1.5
Layout.preferredHeight: Layout.minimumHeight
Layout.maximumWidth: Layout.minimumWidth
Layout.maximumHeight: Layout.minimumHeight
spacing: 0 // avoid gap between title and content
property alias activeApplet: container.activeApplet
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment