Commit 6748f744 authored by Miklós Máté's avatar Miklós Máté Committed by Albert Astals Cid
Browse files

Calendar widget: fix resize

If the fullRepresentation has a minimum size, the applet cannot be shrinked back to show the compactRepresentation.

Alternative fix: make the switch size larger than the minimum size of the fullRepresentation

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent effff0ee
......@@ -90,8 +90,6 @@ Item {
readonly property int _minimumWidth: calendar.showWeekNumbers ? Math.round(_minimumHeight * 1.75) : Math.round(_minimumHeight * 1.5)
readonly property int _minimumHeight: units.gridUnit * 14
Layout.minimumWidth: _minimumWidth
Layout.minimumHeight: _minimumHeight
Layout.preferredWidth: _minimumWidth
Layout.preferredHeight: Math.round(_minimumHeight * 1.5)
Supports Markdown
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