Commit 4b560040 authored by Nate Graham's avatar Nate Graham
Browse files

[applet] Set height of unloaded separator to 0 to avoid layout oddities

parent bc647972
......@@ -80,6 +80,10 @@ PlasmaComponents3.Page {
// separate the connected devices from the available ones
section.delegate: Loader {
active: section != "Connected" && Logic.conectedDevicesCount() > 0
// Need to manually set the height or else the loader takes up
// space after the first time it unloads a previously-loaded item
height: active ? PlasmaCore.Units.gridUnit : 0
sourceComponent: Item {
width: listView.width
height: PlasmaCore.Units.gridUnit
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