Skip to content

Instantly share code, notes, and snippets.

@marcel-ploch
Last active September 24, 2018 07:41
Show Gist options
  • Save marcel-ploch/4697b696080014528c724471df532138 to your computer and use it in GitHub Desktop.
Save marcel-ploch/4697b696080014528c724471df532138 to your computer and use it in GitHub Desktop.
public textChanged(): void {
if (isIOS) {
if (this.textView) {
if (this.textView.ios.contentSize.height > (100)) {
this.textViewHeight = 100;
this.textHeight = this.textView.ios.contentSize.height = 100 + this.contentSizeStartValue
} else {
this.textViewHeight = this.textView.ios.contentSize.height;
this.textHeight = this.contentSizeStartValue + this.textView.ios.contentSize.height;
}
}
} else {
/* this.textHeight = this.textView.android.height > 100 ? 100 : this.textView.android.height;
const textView: TextView = <TextView>this.page.getViewById('androidTextView');*/
this.textHeight = 100;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment