diff --git a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
index c203b5478dfdae5dcc94ddf88d6de86bc6910085..7dccad4da2b44a47a316465b0e3c4a98c6a2ece9 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()