mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Fix sign error for rounded content box
This commit is contained in:
parent
446695aed8
commit
4f904a955e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user