forked from qt-creator/qt-creator
QmlDesigner: Fix implicitHeight in resetVertical
Task-number: QTCREATORBUG-11542 Change-Id: Ia69a95abe42ad0c10b8d65663d252f15cf38cf02 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -503,7 +503,7 @@ void QuickItemNodeInstance::resetVertical()
|
|||||||
if (m_height > 0.0) {
|
if (m_height > 0.0) {
|
||||||
setPropertyVariant("height", m_height);
|
setPropertyVariant("height", m_height);
|
||||||
} else {
|
} else {
|
||||||
setPropertyVariant("height", quickItem()->implicitWidth());
|
setPropertyVariant("height", quickItem()->implicitHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -184,7 +184,7 @@ void QmlGraphicsItemNodeInstance::resetVertical()
|
|||||||
if (m_height > 0.0) {
|
if (m_height > 0.0) {
|
||||||
setPropertyVariant("height", m_height);
|
setPropertyVariant("height", m_height);
|
||||||
} else {
|
} else {
|
||||||
setPropertyVariant("height", qmlGraphicsItem()->implicitWidth());
|
setPropertyVariant("height", qmlGraphicsItem()->implicitHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user