Commit 33cc612b authored by Yerrey Dev's avatar Yerrey Dev Committed by Nate Graham
Browse files

Set sidebar section Loader height to avoid inactive headings taking space

Add height to the Loader based on the implicit height of the loaded `item`, in the case that the `item` is null (such as when it is not active), we set the height to 0. This fixes the issue of when you have unloaded the "default" section header, and scroll back up, there would be empty space where the header would have been.

BUG: 456214

(cherry picked from commit 137dc97f)
parent 0968c47a
Pipeline #203972 canceled with stage
......@@ -69,6 +69,7 @@ ScrollView { 'entryCategory'
section.delegate: Loader {
active: section !== "default" && opacity > 0
height: item ? item.implicitHeight : 0
sourceComponent: Kirigami.ListSectionHeader {
label: 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