This is a pull request to resolve #177 (closed).
Notes:
- I've only been able to test this using the simulator so far.
- I'm aware that this bug exists in edge case behaviour and so have prioritised standard use where possible.
- I began working on a fix using Xcode 9 (GM). I had to 'Update to Recommended Settings' in order for the project to build in the new version of Xcode. All of these changes were added in a separate commit.
As mentioned, I've tried to minimise the impact of this change on standard use of the library, as far as I can tell standard behaviour is the same with or without the fix:
Demo Project (no changes made):
Without Fix | With Fix |
---|---|
Demo Project (multiline placeholder):
Without Fix | With Fix |
---|---|
The fix is, of course, targeted at cases where scrollEnabled = FALSE
. An example can be seen below:
Demo Project (multiline placeholder and scrollEnabled=false)
Note that the auto layout constraints used in the demo project do not work particularly well when descriptionField.scrollEnabled=false, hence the odd layouts.
Without Fix | With Fix |
---|---|