Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.6, 6.2.0
-
None
Description
See BaselineBug.qml
The BaselineBug object is instantiated in a window and is anchored to fill the windowed.
The item defined in BaselineBug.qml shows a an item without issues.
Equally commenting line 3-6 and uncommenting line 8 also works correctly and anchors the right text to the left text baseline.
With lines 3-6 uncommented and line 8 commented. and the height changed to "parent.height - 10" where 10 in this case can be any number, the right text anchors itself to the top of left text instead.
This can also be achieved by writing the number to a property first and using that to calculate the value of height.
Note that the height of the item is set correctly when rendering.
This occurs if any height is set within the object tree so long as the object is a direct parent of the item.
Setting height to "parent.height - (parent.width / 2)" results in correct behaviour so it would appear as long as a "number" is not used then it works fine.
I've attached screenshots that demonstrates the observed behaviour.
HeightIsParentHeightMinus10.png and HeightIsParentHeightMinusPropertyRealValAs10.png demonstrate the issue.