Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
Description
In what looks like a regression introduced sometime during the last 30 days or so, when you specify both 'elide' and 'maximumLineCount' in Text element, the text gets elided but only takes one line.
import QtQuick 2.0 Text { text: "Undeserved praise causes more pangs of conscience later than undeserved blame, but probably only for this reason, that our power of judgment are more completely exposed by being over praised than by being unjustly underestimated" width: 100 elide: Text.ElideRight wrapMode: Text.Wrap maximumLineCount: 4 // (a) Component.onCompleted: { maximumLineCount = undefined // (b) maximumLineCount = 5 // (c) } }
I investigated a bit, and here are my results.
Commenting lines (b) and (c), I'm seeing the bug.
Commenting line (b), I'm seeing the bug, too.
Commenting lines (a) and (b), I'm not seeing the bug.
Leaving the code as it is, I'm not seeing the bug, either.