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 { 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 Layout.maximumHeight: content.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

@ -43,7 +43,7 @@ FocusScope {
width: maxWidth + units.smallSpacing * 2 width: maxWidth + units.smallSpacing * 2
height: Math.min(content.height + units.smallSpacing * 2, height: Math.min(content.height + units.smallSpacing * 2,
dock.screenGeometry.height - dock.normalThickness - 2*units.largeSpacing) 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.minimumWidth: width
Layout.minimumHeight: height Layout.minimumHeight: height
@ -199,16 +199,16 @@ FocusScope {
height: width height: width
source: "latte-dock" source: "latte-dock"
// animated: true // animated: true
usesPlasmaTheme: false usesPlasmaTheme: false
active: aboutMouseArea.containsMouse active: aboutMouseArea.containsMouse
} }
PlasmaComponents.Label { PlasmaComponents.Label {
id: latteTxtMetrics id: latteTxtMetrics
text: "Latte" text: "Latte"
width: 0 width: 0
font.pointSize: 2 * theme.defaultFont.pointSize font.pointSize: 2 * theme.defaultFont.pointSize
visible: false visible: false
} }
PlasmaCore.SvgItem{ PlasmaCore.SvgItem{
@ -342,12 +342,18 @@ FocusScope {
Layout.maximumHeight: height Layout.maximumHeight: height
width: maxWidth - units.smallSpacing width: maxWidth - units.smallSpacing
height: behaviorPage.Layout.maximumHeight + units.smallSpacing * 4 height: availableFreeHeight + units.smallSpacing * 4
color: transparentBackgroundColor color: transparentBackgroundColor
border.width: 1 border.width: 1
border.color: theme.backgroundColor 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 { PlasmaExtras.ScrollArea {
id: scrollArea id: scrollArea

Loading…
Cancel
Save