Commit a2edfd2a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: property pane is hidden if it does not fit

if there is no place for the property pane we hide it
parent 825c43dd
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment