diff --git a/widget/src/rule.rs b/widget/src/rule.rs index 2bb893b2..d847577e 100644 --- a/widget/src/rule.rs +++ b/widget/src/rule.rs @@ -134,7 +134,7 @@ where let style = theme.style(&self.class); let bounds = if self.is_horizontal { - let line_y = (bounds.y + (bounds.height / 2.0)).round(); + let line_y = bounds.y.round(); let (offset, line_width) = style.fill_mode.fill(bounds.width); let line_x = bounds.x + offset; @@ -146,7 +146,7 @@ where height: bounds.height, } } else { - let line_x = (bounds.x + (bounds.width / 2.0)).round(); + let line_x = bounds.x.round(); let (offset, line_height) = style.fill_mode.fill(bounds.height); let line_y = bounds.y + offset;