Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

fix overflow issues with ASEditableTextNode's textView#935

Merged
appleguy merged 1 commit intofacebookarchive:masterfrom
samhsiung:clip_yes
Dec 13, 2015
Merged

fix overflow issues with ASEditableTextNode's textView#935
appleguy merged 1 commit intofacebookarchive:masterfrom
samhsiung:clip_yes

Conversation

@samhsiung
Copy link
Copy Markdown
Contributor

Setting clipBounds = NO causes UITextView to overflow in iOS9 (works fine however in iOS8), so we fix by removing this config.

Addressing the deleted comment:

  1. From my tests, selection handle doesn't clip anymore in iOS9+ and iOS8.4 simulator
  2. If there is clipping of the handle in any case, we recently made the textView inset configurable which should address the problem by providing a way to give the handle room to breathe.

before:
simulator screen shot dec 11 2015 7 00 48 pm

after: (more than three lines, the extra lines are clipped)
simulator screen shot dec 11 2015 6 53 46 pm

This should also fix the placeholder text overflowing which has been reported by @steveram

@samhsiung samhsiung changed the title make ASEditableTextNode's textView clip to bounds fix overflow issues with ASEditableTextNode's textView Dec 12, 2015
appleguy added a commit that referenced this pull request Dec 13, 2015
Re-enable clipsToBounds on ASEditableTextNode's textView to fix iOS 9 style overflowing
@appleguy appleguy merged commit 0cc229d into facebookarchive:master Dec 13, 2015
@appleguy
Copy link
Copy Markdown
Contributor

Thanks a lot for investigating this, @samhsiung!!

peter-iakovlev pushed a commit to peter-iakovlev/AsyncDisplayKit that referenced this pull request Jul 21, 2018
* fix SIMULATE_WEB_RESPONSE not imported facebookarchive#449

* Fix to make rangeMode update in right time

* remove uncessary assert

* textnode2-snapshot-test

* add change log

* fix image recording

* disable recording

* renaming test method

* reset experiment in teardown
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants