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:
parent
872aff04d6
commit
b4c02a3a91
@ -34,7 +34,10 @@ import "../controls" as ExtraControls
|
|||||||
PlasmaComponents.Page {
|
PlasmaComponents.Page {
|
||||||
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
|
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
|
||||||
//fix the height binding loop when showing the configuration window
|
//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
|
property alias dockTypeSelection: _dockTypeSelection
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user