1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00

Fix sign error for rounded content box

This commit is contained in:
Guillaume Ayoub 2013-12-10 18:29:58 +01:00
parent 446695aed8
commit 4f904a955e

View File

@ -262,10 +262,10 @@ class Box(object):
def rounded_content_box(self):
"""Return the position, size and radii of the rounded content box."""
return self.rounded_box(
self.border_top_width - self.padding_top,
self.border_right_width - self.padding_right,
self.border_bottom_width - self.padding_bottom,
self.border_left_width - self.padding_left)
self.border_top_width + self.padding_top,
self.border_right_width + self.padding_right,
self.border_bottom_width + self.padding_bottom,
self.border_left_width + self.padding_left)
# Positioning schemes