You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inserted text bundles rendering "<HAlign=Left>" with left-alignment and "<HAlign=Right>" with right-alignment, using the same Transform. Did the same for "VAlign\n=\nTop" and "VAlign\n=\nBottom"
What you expected to happen
The Bevy docs describe left and right alignment as follows:
Left: Leftmost character is immediately to the right of the render position.
Bounds start from the render position and advance rightwards.
(...)
Right: Rightmost character is immediately to the left of the render position.
Bounds start from the render position and advance leftwards.
They describe top and bottom alignment as follows:
Top: Characters/bounds start underneath the render position and progress downwards.
Bottom: Characters/bounds start above the render position and progress upward.
This matches my own expectation based on experience with, e.g, word processors, UI libraries, etc. As such, I would expect to see something like this in the center of the screen:
VAlign
=
Bottom
<HAlign=Right><HAlign=Left>
VAlign
=
Top
Note that the location of the text should be the opposite of its alignment. That is: since the alignment point is in the center of the screen, right-aligned text (text with its right side aligned to the center) should be to the left of center, while left-aligned text (text with its left side aligned to the center) should be to the right of center.
What actually happened
Layout was exactly the opposite of what I expected:
VAlign
=
Top
<HAlign=Left><HAlign=Right>
VAlign
=
Bottom
Bevy version
0.5
Operating system & version
Debian GNU/Linux "buster"
What you did
Inserted text bundles rendering "<HAlign=Left>" with left-alignment and "<HAlign=Right>" with right-alignment, using the same
Transform
. Did the same for "VAlign\n=\nTop" and "VAlign\n=\nBottom"What you expected to happen
The Bevy docs describe left and right alignment as follows:
They describe top and bottom alignment as follows:
This matches my own expectation based on experience with, e.g, word processors, UI libraries, etc. As such, I would expect to see something like this in the center of the screen:
Note that the location of the text should be the opposite of its alignment. That is: since the alignment point is in the center of the screen, right-aligned text (text with its right side aligned to the center) should be to the left of center, while left-aligned text (text with its left side aligned to the center) should be to the right of center.
What actually happened
Layout was exactly the opposite of what I expected:
Additional information
Program demonstrating the problem: test.tar.gz
Screenshot of the test program above on my computer:
The text was updated successfully, but these errors were encountered: