We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cce4ed commit 56f766dCopy full SHA for 56f766d
1 file changed
src/engine.zig
@@ -1850,7 +1850,7 @@ pub const Element = struct {
1850
const is_cr = item.text != null and item.text.?.len == 1 and item.text.?[0] == '\n';
1851
const size = text_height.pixel_size(display, item.texture);
1852
// Would drawing this word overflow?
1853
- if ((x + size.width > wrap_at and line_word_count > 0) or is_cr) {
+ if ((x + word_spacing + size.width > wrap_at and line_word_count > 0) or is_cr) {
1854
needed_width = @max(needed_width, x);
1855
// Wrap to next line
1856
x = 0;
0 commit comments