Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.3.1
-
None
Description
The example below will fail to right align the text.
import QtQuick 2.0 Rectangle { property real margin: 24 width: 500 height: 600 Text { id: foo font.pixelSize: 40 text: 'The quick brown fox jumps over the lazy dog' width: Math.min(implicitWidth, parent.width - 2*margin) horizontalAlignment: Text.AlignRight anchors { right: parent.right rightMargin: margin } } }
Attachments
For Gerrit Dashboard: QTBUG-40161 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
89555,3 | Binding Text width to implicitWidth can result in incorrect layout | 5.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |