Commit 137dc97f 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
parent 4456b48a
Pipeline #203968 passed with stage
in 17 minutes
......@@ -69,6 +69,7 @@ ScrollView {
section.property: '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