Skip to content
Snippets Groups Projects
Commit d3e4f339 authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Felix Paul Kühne
Browse files

qml: fix header view alignment in BrowseView

closes #28586
parent 0285de2a
No related branches found
No related tags found
1 merge request!6003qml: fix header view alignment in BrowseView
Pipeline #513352 passed with stage
in 12 minutes and 3 seconds
......@@ -37,6 +37,11 @@ MainViewLoader {
readonly property int contentLeftMargin: currentItem?.contentLeftMargin ?? 0
readonly property int contentRightMargin: currentItem?.contentRightMargin ?? 0
readonly property int headerLeftPadding: (contentLeftMargin > 0)
? contentLeftMargin : VLCStyle.dynamicAppMargins(width)
readonly property int headerRightPadding: (contentRightMargin > 0)
? contentRightMargin : VLCStyle.dynamicAppMargins(width)
// fixme remove this
property Item _currentView: currentItem
......@@ -137,8 +142,8 @@ MainViewLoader {
headerDelegate: BrowseTreeHeader {
providerModel: root.model
leftPadding: root.contentLeftMargin
rightPadding: root.contentRightMargin
leftPadding: root.headerLeftPadding
rightPadding: root.headerRightPadding
width: gridView.width
......@@ -276,8 +281,8 @@ MainViewLoader {
header: BrowseTreeHeader {
providerModel: root.model
leftPadding: root.contentLeftMargin
rightPadding: root.contentRightMargin
leftPadding: root.contentLeftPadding
rightPadding: root.contentRightPadding
width: tableView.width
......@@ -411,6 +416,9 @@ MainViewLoader {
focus: true
leftPadding: root.headerLeftPadding
rightPadding: root.headerRightPadding
providerModel: root.model
Layout.fillWidth: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment