Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Update constraints in SLKTextInputBar on text view content size change #550

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

algrid
Copy link
Contributor

@algrid algrid commented Nov 6, 2016

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've been mindful about doing atomic commits, adding documentation to my changes, not refactoring too much.
  • I've a descriptive title and added any useful information for the reviewer. Where appropriate, I've attached a screenshot and/or screencast (gif preferrably).
  • I've written tests to cover the new code and functionality included in this PR.
  • I've read, agree to, and signed the Contributor License Agreement (CLA).

PR Summary

Update SLKTextInputBar subviews constraints on text view content size change (for instance due to font change)

Related Issues

Fixes #543

@@ -578,6 +578,9 @@ - (void)slk_didChangeTextViewContentSize:(NSNotification *)notification
BOOL shouldHide = (self.textView.numberOfLines == 1) || self.editing;
self.charCountLabel.hidden = shouldHide;
}
dispatch_async(dispatch_get_main_queue(), ^{
Copy link

@dzenbot dzenbot Feb 17, 2017

Choose a reason for hiding this comment

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

I'm worried that we would be updating the constraints over and over at every content size update. I will need to test this before merging.

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

Successfully merging this pull request may close these issues.

2 participants