From d09f39931fcbd7b38909b564c008737737e5ba3f Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@digia.com>
Date: Fri, 31 May 2013 17:50:07 +0200
Subject: [PATCH] MiniProjectTargetSelector: Work with no sidebar

Fix MiniProjectTargetSelector becoming too small when no sidebar is
displayed.

Task-number: QTCREATORBUG-9423
Change-Id: I40f9093f7217448c3b29a699aa8e07710127d608
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
---
 src/plugins/projectexplorer/miniprojecttargetselector.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/projectexplorer/miniprojecttargetselector.cpp b/src/plugins/projectexplorer/miniprojecttargetselector.cpp
index 30d44ce5545..af399f4862f 100644
--- a/src/plugins/projectexplorer/miniprojecttargetselector.cpp
+++ b/src/plugins/projectexplorer/miniprojecttargetselector.cpp
@@ -779,7 +779,9 @@ void MiniProjectTargetSelector::doLayout(bool keepSize)
     m_summaryLabel->move(0, summaryLabelY);
 
     // Height to be aligned with side bar button
-    int alignedWithActionHeight = actionBar->height() - statusBar->height();
+    int alignedWithActionHeight = 210;
+    if (actionBar->isVisible())
+        alignedWithActionHeight = actionBar->height() - statusBar->height();
     int bottomMargin = 9;
     int totalHeight = 0;
 
-- 
GitLab