Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
Windows 7
-
4.8.6: 292a6707e565f226314fba541b3cdeaef5046d4e 5.3: 2cd0b96a269efa96f1f2759980ea207b94a995e2
Description
TextEdit text vertical alignment position is not updated correctly when TextEdit height is changed. Position is updated only when width is changed. with plain "Text"-item both works. Please see test and see both in attached main.qml. (left click to change height, right changes width)
Tested also that "TextInput"-item works fine. Issue is only with "TextEdit"-item. Maybe there's something missing that "Text" and "TextInput" has.
All above is valid when using Qt Quick 2.
Here is one solution worked for Qt Quick 1:
qtquick1srcdeclarativegraphicsitemsqdeclarativetextEdit.cpp
void QDeclarativeTextEdit::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) { // if (newGeometry.width() != oldGeometry.width()) if (newGeometry != oldGeometry) updateSize(); QDeclarativePaintedItem::geometryChanged(newGeometry, oldGeometry); }
Attachments
Issue Links
- relates to
-
QTBUG-117667 REG: TextEdit height gets stuck due to binding loops (forever) or anchor changes (temporarily until further resize event)
- Closed