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

@ -43,7 +43,7 @@ FocusScope {
width: maxWidth + 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
//! for small resolutions we better limit the size of the settings in order to be shown properly
Layout.minimumWidth: width
Layout.minimumHeight: height
@ -199,16 +199,16 @@ FocusScope {
height: width
source: "latte-dock"
// animated: true
// animated: true
usesPlasmaTheme: false
active: aboutMouseArea.containsMouse
}
PlasmaComponents.Label {
id: latteTxtMetrics
text: "Latte"
width: 0
font.pointSize: 2 * theme.defaultFont.pointSize
visible: false
id: latteTxtMetrics
text: "Latte"
width: 0
font.pointSize: 2 * theme.defaultFont.pointSize
visible: false
}
PlasmaCore.SvgItem{
@ -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