Skip to content
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

Wrapped text becomes a single line when the expected item rectangle is not in the viewport #706

Closed
YukinoHayakawa opened this issue Jun 18, 2016 · 2 comments
Labels

Comments

@YukinoHayakawa
Copy link

YukinoHayakawa commented Jun 18, 2016

wordwrap

I'm making a resource manager displaying item groups consist of a thumbnail and a name respectively, and I'm wrapping the name text like the Windows Explorer does because I don't want it to expand the width of the group. However this strange behavior happens when I moves the manager window around, and disturbs the layout.

I've found that if TextWrapPos == -1.f is used to determine whether wrapping is enabled, but I can't see any difference changing it, so I suspect there might be some other positional / clipping calculations involed.

I hope this could be fixed or an corrected code replacing the old in the demo. Thank you.

@ocornut ocornut added the bug label Jun 19, 2016
@ocornut
Copy link
Owner

ocornut commented Jun 19, 2016

Good catch!

ocornut added a commit that referenced this issue Jun 19, 2016
@ocornut
Copy link
Owner

ocornut commented Jun 19, 2016

Fixed!

@ocornut ocornut closed this as completed Jun 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants