diff --git a/src/plugins/projectexplorer/miniprojecttargetselector.cpp b/src/plugins/projectexplorer/miniprojecttargetselector.cpp
index 30d44ce554553e3845021dc1795dd57e0f17746a..af399f4862fd1c68708d642ace8fa2e6c87f44f8 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;