We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7a9c1 commit 1aa2c32Copy full SHA for 1aa2c32
sugarloaf/src/sugarloaf.rs
@@ -504,7 +504,7 @@ impl Sugarloaf {
504
color: stack[i].background_color,
505
size: [
506
width_bound * quantity as f32,
507
- (self.layout.sugarheight - 0.5),
+ (self.layout.sugarheight),
508
],
509
});
510
@@ -529,9 +529,8 @@ impl Sugarloaf {
529
scaled_rect_pos_y,
530
stack[i].background_color,
531
532
- // 0.5 is a modifier applied in the font size to don't
533
- // overflow rect height
534
- self.layout.sugarheight - 0.5,
+ // 1.0 is subtracted on font size so to doesn't overflow rect height
+ self.layout.sugarheight - 0.8,
535
);
536
537
// If the next rect background color is different the push rect
0 commit comments