Commit c08db832 authored by Nate Graham's avatar Nate Graham
Browse files

ViewSelector: don't overlap icons with scrollbar when being icon-only


Co-authored-by: Jack Hill's avatarJack Hill <jackhill3103@gmail.com>

BUG: 448066
FIXED-IN: 22.04
parent 78ed4b46
Pipeline #147138 passed with stage
in 6 minutes and 48 seconds
......@@ -18,7 +18,7 @@ ScrollView {
readonly property alias currentIndex: viewModeView.currentIndex
readonly property int wideWidth: Kirigami.Units.gridUnit * 12
readonly property int iconsOnlyWidth: Kirigami.Units.iconSizes.smallMedium + 2 * Kirigami.Units.largeSpacing
readonly property int iconsOnlyWidth: Kirigami.Units.iconSizes.smallMedium + 2 * Kirigami.Units.largeSpacing + (ScrollBar.vertical.visible ? ScrollBar.vertical.implicitWidth : 0)
signal switchView(int viewIndex)
......@@ -70,7 +70,7 @@ ScrollView {
section.delegate: Loader {
active: section !== "default"
sourceComponent: Kirigami.ListSectionHeader {
label: section
label: scrollView.implicitWidth == wideWidth ? section : ""
width: viewModeView.width
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment