Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.10, 6.4.0 Beta4
-
None
-
-
4933bd6351 (qt/qtdeclarative/dev) 4933bd6351 (qt/tqtc-qtdeclarative/dev) 3537c67dd0 (qt/qtdeclarative/6.4) 3537c67dd0 (qt/tqtc-qtdeclarative/6.4) 8d6beb7940 (qt/tqtc-qtdeclarative/5.15) 3aca22d5f5 (qt/qtdeclarative/6.3)
Description
The basline anchor of a QtQuick Text element doesn't always update correctly when the Text.Fit fontSizeMode is used.
In the attached example there are two Text elements painted inside a blue Rectangle. One Text Element doesn't use Text.Fit and has a text which fits inside the box. The other uses Text.Fit with a larger text and needs to decrease the fontSize.
When clicking on the boxes, the blue rectangle gets bigger and the font moves down (anchored bottom). The violet Rectangle uses a basline anchor and should be resized accordingly when the blue rectangle updates its size.