-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI node gets compressed in ui
example scrollable area boundary
#8167
Comments
ui
example scrollable area boundaryui
example scrollable area boundary
A previous instance of this bug was dependent on scale factor, and that seems to be the case here too. Adding
removes the squish. |
That "fixes" the issue… but it also scales everything to half the size. 😅 I'm looking The clipping should be affecting (Good excuse to read the UI rendering code.) |
I think fixing this for text broke it for images, then fixing it for image broke it back for text... Be sure to test both when trying a new fix 👍 |
OK, I think I'm going to prepare an overflow clipping debug example. |
I think this was probably introduced when |
# Objective - Add a new example that helps debug different UI overflow scenarios - This example tests the clipping behavior for images and text when the node is moved, scaled or rotated. ## Solution - Add a new `overflow_debug` example # Preview **Note:** Only top-left is working properly right now. https://user-images.githubusercontent.com/188612/227629093-26c94c67-1781-437d-8410-e854b6f1adc1.mp4 --- Related #8095, #8167 --------- Co-authored-by: Carter Anderson <mcanders1@gmail.com> Co-authored-by: ickshonpe <david.curthoys@googlemail.com>
Bevy version
v0.11.0-dev
(ce33354)Relevant system information
What you did
ui
example, scroll until a node shows at the boundaryWhat went wrong
See how
Item 18
gets vertically compressed when it's on the boundary:For comparison, this is how it should look like (this image is when the node it's not at the boundary):
I've debugged in XCode and I'm seeing this:
I've compared the Y position & UVs for the letter
m
fromItem 17
andItem 18
:Item 17
m
letter is9.5
(pos 2-1), and vertical UV range is0.37
(uv 2-1)Item 18
m
letter is3.5
(36.8% of9.5
)0.25
(67.6%), instead it should be0.136
(36.8%)The text was updated successfully, but these errors were encountered: