Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add padding support #11

Merged
merged 1 commit into from
Mar 19, 2015
Merged

Add padding support #11

merged 1 commit into from
Mar 19, 2015

Conversation

amire80
Copy link
Owner

@amire80 amire80 commented Mar 19, 2015

No description provided.

zeljkofilipin added a commit that referenced this pull request Mar 19, 2015
@zeljkofilipin zeljkofilipin merged commit 3c2a5f7 into master Mar 19, 2015
@@ -46,7 +46,7 @@ def self.rectangle(rectangles)
height = bottom_right_y - top_left_y

# The new rectangle is constructed with all the co-ordinates calculated above
[top_left_x, top_left_y, width, height]
[top_left_x - padding, top_left_y - padding, width + padding * 2, height + padding * 2]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any specific reason why width and height is increased twice of padding?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The padding is added on both sides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants