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 tests for PaddingDesignable & fix height bug #483

Merged
merged 3 commits into from
May 16, 2017

Conversation

SD10
Copy link
Member

@SD10 SD10 commented May 16, 2017

Summary of Pull Request:

  • This Pull Request adds tests for the PaddingDesignable protocol.
  • The height for the padding view has been changed to a default value of 1 pt.

Reasoning:

  • The height previously was 0 for the left and right padding.
  • The height for the sides configuration was set to the amount of width padding.

Therefore, if you provided a width that was greater than the height of the text field, the padding view could possibly extend outside the bounds of the text field.

@IBAnimatableBot
Copy link

IBAnimatableBot commented May 16, 2017

2 Warnings
⚠️ Consider adding supporting documentation to this change. Documentation can be found in the docs directory.
⚠️ Consider adding / updating the demo ap.

Generated by 🚫 Danger

Copy link
Member

@tbaranes tbaranes left a comment

Choose a reason for hiding this comment

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

You got a few SwiftLint warnings, can you take care of them before merging?

Copy link
Member

@JakeLin JakeLin left a comment

Choose a reason for hiding this comment

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

Good find, please fix the code style before merging. Well done 👍

@SD10 SD10 force-pushed the testing/padding-designable branch from a81d877 to 91eccb1 Compare May 16, 2017 14:59
@SD10
Copy link
Member Author

SD10 commented May 16, 2017

No problem! Ran out of time to fix SwiftLint warnings last night 😅

@SD10 SD10 merged commit c13042b into master May 16, 2017
@SD10 SD10 deleted the testing/padding-designable branch May 16, 2017 20:52
@SD10
Copy link
Member Author

SD10 commented May 18, 2017

#434 - marking this for record keeping

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.

None yet

4 participants