diff --git a/containments/desktop/package/contents/ui/main.qml b/containments/desktop/package/contents/ui/main.qml --- a/containments/desktop/package/contents/ui/main.qml +++ b/containments/desktop/package/contents/ui/main.qml @@ -188,7 +188,7 @@ function preferredWidth(minimum) { if (isContainment || !folderViewLayer.ready) { - return undefined; + return -1; } else if (useListViewMode) { return (minimum ? folderViewLayer.view.cellHeight * 4 : units.gridUnit * 16); } @@ -198,7 +198,7 @@ function preferredHeight(minimum) { if (isContainment || !folderViewLayer.ready) { - return undefined; + return -1; } else if (useListViewMode) { var height = (folderViewLayer.view.cellHeight * (minimum ? 1 : 15)) + units.smallSpacing; } else {