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

feat: Remove redundant code #173

Merged
merged 2 commits into from
Feb 4, 2021
Merged

feat: Remove redundant code #173

merged 2 commits into from
Feb 4, 2021

Conversation

cbbfcd
Copy link

@cbbfcd cbbfcd commented Feb 2, 2021

No description provided.

@cbbfcd cbbfcd requested a review from prevwong as a code owner February 2, 2021 09:32
@netlify
Copy link

netlify bot commented Feb 2, 2021

Deploy preview for craftjs ready!

Built with commit 33822a8

https://deploy-preview-173--craftjs.netlify.app

Comment on lines 32 to 41
x: Math.round(x),
y: Math.round(y),
top: Math.round(top),
left: Math.round(left),
bottom: Math.round(bottom),
right: Math.round(right),
width: Math.round(width),
height: Math.round(height),
outerWidth: Math.round(width + margin.left + margin.right),
outerHeight: Math.round(height + margin.top + margin.bottom),
Copy link
Owner

Choose a reason for hiding this comment

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

Looks good, but can we keep Math.round? I don't think we need a separate round function just yet (even if we do, it shouldn't be exported from this getDOMInfo file as that would have a different responsibility)

Copy link
Author

Choose a reason for hiding this comment

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

done.

Copy link
Owner

@prevwong prevwong left a comment

Choose a reason for hiding this comment

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

Thanks! 🥳

@kodiakhq kodiakhq bot merged commit e14c0fd into prevwong:develop Feb 4, 2021
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.

2 participants