1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-27 06:03:51 +03:00

fix #950,bound dock win settings height

--dont enable height for dock settings that is
higher than the screen resolution height or one
that isnt shown correctly.
This commit is contained in:
Michail Vourlakos 2018-04-02 18:34:04 +03:00
parent 872aff04d6
commit b4c02a3a91

View File

@ -34,7 +34,10 @@ import "../controls" as ExtraControls
PlasmaComponents.Page {
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
//fix the height binding loop when showing the configuration window
Layout.maximumHeight: 28*theme.mSize(theme.defaultFont).height + units.smallSpacing * 2
Layout.maximumHeight: Math.min(28*theme.mSize(theme.defaultFont).height + units.smallSpacing * 2, availableFreeHeight)
property int availableFreeHeight: dock.screenGeometry.height - dock.normalThickness - 2*units.largeSpacing
- header.height - headerSpacer.height - tabBar.height - actionButtons.height - 36
property alias dockTypeSelection: _dockTypeSelection