Commit 1a69daf9 authored by Noah Davis's avatar Noah Davis 🌵 Committed by Nate Graham
Browse files

kickoff: make section label width use KickoffListView::availableWidth

This is slightly better code since it's based on the real available
width instead of the contentItem width.
parent dfff3054
......@@ -137,7 +137,7 @@ EmptyPage {
width: section.length === 1
? KickoffSingleton.listDelegateContentHeight + leftPadding + rightPadding
// Accessing implicitWidth fixes the width being 0 when loaded.
: Math.min(Math.ceil(implicitWidth), view.contentWidth)
: Math.min(Math.ceil(implicitWidth), view.availableWidth)
height: KickoffSingleton.listDelegateHeight
leftPadding: view.effectiveLayoutDirection === Qt.LeftToRight
? KickoffSingleton.listItemMetrics.margins.left : 0
......
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