1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 13:33:50 +03:00

fix #936, limit the dock settings window height

--in case the user has strange settings for its font
the settings window might become too high with no reason.
We limit this settings window height based on the screens
resolution height.
This commit is contained in:
Michail Vourlakos 2018-03-26 20:52:52 +03:00
parent eb3feb4a4e
commit 51d6060336

View File

@ -41,7 +41,10 @@ FocusScope {
property int maxWidth: 34 * theme.defaultFont.pixelSize
width: maxWidth + units.smallSpacing * 2
height: content.height + units.smallSpacing * 2
height: Math.min(content.height + units.smallSpacing * 2,
dock.screenGeometry.height - dock.normalThickness - 2*units.largeSpacing)
//! for small resolutions we better limit the size of the settings in order to be shown properly
Layout.minimumWidth: width
Layout.minimumHeight: height
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft