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.
pull/2/head
Michail Vourlakos 7 years ago
parent 872aff04d6
commit b4c02a3a91

@ -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

Loading…
Cancel
Save