diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-02 17:22:46 +0200 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-09 19:20:06 +0200 |
| commit | ea898f614dcded4012d45a254b044dc7b37c40c0 (patch) | |
| tree | e18b3494ea990cdfb3926c2c84e5b8e0fbe6232d /src/qml/compiler/qv4codegen.cpp | |
| parent | 0121c6737c7374d6b21eee4eeed861da2ef77999 (diff) | |
Text: don't fall back to full-width layout if availableWidth == 0
If Text.width == Text.rightPadding, there is no space to render any
text; but in that case, QQuickTextPrivate::availableWidth() returns 0:
it's incorrect to fall back to layout.maximumWidth() and allow rendering
the whole line. Prior to 6ec2693d4a3c95ca9ff0c349d3c587a7f1402c05
we were checking width() here, so let's do that again.
Fixes: QTBUG-83413
Change-Id: I3ee3b49406577c3aa005a3ca3606308ff0a21d8d
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit 406ff6b53d02b8db4231e473982fe593fb1e48c6)
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions
