From c39ffd01197969a2c021977974188ba555bca8c0 Mon Sep 17 00:00:00 2001 From: Robert Schroll Date: Wed, 1 Oct 2014 01:17:35 -0400 Subject: [PATCH] Get Dialog to shrink with OptionSelectors Based on this commit: http://bazaar.launchpad.net/~zsombi/ubuntu-ui-toolkit/dialog-size-fix/revision/1269 Closes #44. --- ui/components/TitlelessDialog.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/TitlelessDialog.qml b/ui/components/TitlelessDialog.qml index 8a1b8f2..d04d96a 100644 --- a/ui/components/TitlelessDialog.qml +++ b/ui/components/TitlelessDialog.qml @@ -171,7 +171,7 @@ PopupBase { property real itemSpacing: units.gu(2) property Item dismissArea: dialog.dismissArea - height: Math.min(childrenRect.height, dialog.height) + height: Math.min(contentsColumn.height + foreground.margins, dialog.height) Column { id: contentsColumn