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

Buggy text alignment in comboboxes. #112

Closed
StrikerMan780 opened this issue Sep 17, 2024 · 3 comments
Closed

Buggy text alignment in comboboxes. #112

StrikerMan780 opened this issue Sep 17, 2024 · 3 comments

Comments

@StrikerMan780
Copy link
Contributor

StrikerMan780 commented Sep 17, 2024

Here's a video demonstrating a bizarre bug with text centering with comboboxes:
https://shadowmavericks.com/files/ShareX/tfury_2024-09-17_14-51-51.mp4

image

Potentially related to: Immediate-Mode-UI/Nuklear#646 (comment)

or perhaps the check against message width, is against the whole string, rather than the split portion, leaving blank space.

@StrikerMan780
Copy link
Contributor Author

StrikerMan780 commented Sep 17, 2024

Another possibility is that the "text length" function in my program is having difficulty due to lack of a null terminator. I'll see if I can fix this.

@RobLoach
Copy link
Owner

RobLoach commented Sep 17, 2024

Interesting idea... If there's no null-terminator, you can also set the console->label_length.

Another thing to consider could be how your renderer gets the rendered text width?

@StrikerMan780
Copy link
Contributor Author

StrikerMan780 commented Sep 17, 2024

Yeah, it was my fault. My text width function wasn't being fed the "len" value of the width callback in Nuklear. Rectified this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants