From 76951975171c98435595778ad95e7a4d04672ed0 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 8 Aug 2012 11:36:30 +0200 Subject: [PATCH] always display at least one column --- declarativeimports/plasmaextracomponents/qml/PageRow.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarativeimports/plasmaextracomponents/qml/PageRow.qml b/declarativeimports/plasmaextracomponents/qml/PageRow.qml index b3927a241..b3daf026d 100644 --- a/declarativeimports/plasmaextracomponents/qml/PageRow.qml +++ b/declarativeimports/plasmaextracomponents/qml/PageRow.qml @@ -58,7 +58,7 @@ Item { property ToolBar toolBar property variant initialPage //A column is wide enough for 30 characters - property int columnWidth: parent.width/Math.round(parent.width/(theme.defaultFont.mSize.width*30)) + property int columnWidth: Math.round(parent.width/(theme.defaultFont.mSize.width*30)) > 0 ? parent.width/Math.round(parent.width/(theme.defaultFont.mSize.width*30)) : width clip: true // Indicates whether there is an ongoing page transition.