We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68a0057 commit 5381ab8Copy full SHA for 5381ab8
1 file changed
src/engine.zig
@@ -3748,7 +3748,7 @@ test "text input sizing" {
3748
try eq(214, l.type.label.elements.items[1].width);
3749
3750
// Dispalay width of the words when rendered to the physical display
3751
- try eq(187, @trunc(l.shrink_width(display, 500)));
+ try eq(93.5, l.shrink_width(display, 500) / display.pixel_scale);
3752
try eq(default_font_size * display.pixel_scale, l.shrink_height(display, 500));
3753
try eq(2 * default_font_size * display.pixel_scale, l.shrink_height(display, 115));
3754
}
0 commit comments