Fix spacing for vertical bar
This commit is contained in:
parent
e706dabef3
commit
ee50d84a53
5 changed files with 28 additions and 36 deletions
|
|
@ -20,17 +20,17 @@ Item {
|
|||
property int sectionWidgetIndex: -1
|
||||
property int sectionWidgetsCount: 0
|
||||
property string barPosition: "top"
|
||||
|
||||
|
||||
// Listen to BarService position changes
|
||||
Connections {
|
||||
target: BarService
|
||||
function onBarPositionChanged(newPosition) {
|
||||
barPosition = newPosition
|
||||
// Force re-evaluation of implicit sizing
|
||||
implicitWidth = Qt.binding(function() {
|
||||
implicitWidth = Qt.binding(function () {
|
||||
return (barPosition === "left" || barPosition === "right") ? Math.round(Style.barHeight * scaling) : calculatedHorizontalWidth()
|
||||
})
|
||||
implicitHeight = Qt.binding(function() {
|
||||
implicitHeight = Qt.binding(function () {
|
||||
return (barPosition === "left" || barPosition === "right") ? calculatedVerticalHeight() : Math.round(Style.barHeight * scaling)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue