From cddf67a0e62e060369cab3d96babbd2c0cfc4524 Mon Sep 17 00:00:00 2001 From: Eric Atkinson Date: Thu, 30 May 2013 18:08:41 -0700 Subject: [PATCH] Update border rendering --- src/components/main/layout/model.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/main/layout/model.rs b/src/components/main/layout/model.rs index cc38cffcc40..f7f012ee56c 100644 --- a/src/components/main/layout/model.rs +++ b/src/components/main/layout/model.rs @@ -165,12 +165,12 @@ impl RenderBox { let border_width = border.top; let bounds = Rect { origin: Point2D { - x: abs_bounds.origin.x - border_width / Au(2), - y: abs_bounds.origin.y - border_width / Au(2), + x: abs_bounds.origin.x, + y: abs_bounds.origin.y, }, size: Size2D { - width: abs_bounds.size.width + border_width, - height: abs_bounds.size.height + border_width + width: abs_bounds.size.width, + height: abs_bounds.size.height } };