Buggy text alignment in comboboxes.
Closed this issue · 3 comments
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
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.
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.
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?
Yeah, it was my fault. My text width function wasn't being fed the "len" value of the width callback in Nuklear. Rectified this.