fix BehaviorPage scrolling capability

pull/2/head
Michail Vourlakos 7 years ago
parent b4c02a3a91
commit dfa83ecc7b

@ -33,11 +33,7 @@ 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: 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
Layout.maximumHeight: content.height + units.smallSpacing * 2
property alias dockTypeSelection: _dockTypeSelection

@ -342,12 +342,18 @@ FocusScope {
Layout.maximumHeight: height
width: maxWidth - units.smallSpacing
height: behaviorPage.Layout.maximumHeight + units.smallSpacing * 4
height: availableFreeHeight + units.smallSpacing * 4
color: transparentBackgroundColor
border.width: 1
border.color: theme.backgroundColor
//fix the height binding loop when showing the configuration window
property int availableFreeHeight: Math.min(29*theme.mSize(theme.defaultFont).height + units.smallSpacing * 2, //calculatios according to font size
dock.screenGeometry.height - dock.normalThickness - 2*units.largeSpacing - header.height - headerSpacer.height
- tabBar.height - actionButtons.height - 36) //calculations according to screen geometry and elements heights
PlasmaExtras.ScrollArea {
id: scrollArea

Loading…
Cancel
Save