From a2edfd2a0f54f8a89c77cf0b3eb9726ec164bd00 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 20 Jul 2010 15:01:50 +0200
Subject: [PATCH] QmlDesigner: property pane is hidden if it does not fit

if there is no place for the property pane we hide it
---
 .../components/propertyeditor/contextpanewidget.cpp            | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
index c203b5478df..7dccad4da2b 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
@@ -89,6 +89,7 @@ void ContextPaneWidget::activate(const QPoint &pos, const QPoint &alternative, c
 
 void ContextPaneWidget::rePosition(const QPoint &position, const QPoint &alternative, const QPoint &alternative2)
 {
+    show();
     if ((position.x()  + width()) < parentWidget()->width())
         move(position);
     else
@@ -96,6 +97,8 @@ void ContextPaneWidget::rePosition(const QPoint &position, const QPoint &alterna
 
     if (pos().y() < 0)
         move(alternative2);
+    if ((pos().y() + height()) > parentWidget()->height())
+        hide();
 }
 
 void ContextPaneWidget::deactivate()
-- 
GitLab