Commit 0761e890 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.contextPane: inprove postitioning

parent 8c016da9
......@@ -121,6 +121,12 @@ void QmlContextPane::apply(TextEditor::BaseTextEditorEditable *editor, Document:
if (line1 > -1 && line2 > -1)
reg = m_editor->editor()->translatedLineRegion(line1 - 1, line2);
QRect rect;
rect.setHeight(m_widget->height() + 10);
rect.setWidth(reg.boundingRect().width() - reg.boundingRect().left());
rect.moveTo(reg.boundingRect().topLeft());
reg = reg.intersect(rect);
if (name.contains("Text")) {
m_node = 0;
PropertyReader propertyReader(doc.data(), initializer);
......
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