mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
fix(ios): textfield resizing (auto width) on text change (#9176)
This commit is contained in:
@ -217,7 +217,10 @@ export class TextField extends TextFieldBase {
|
||||
if (this.formattedText) {
|
||||
_updateCharactersInRangeReplacementString(this.formattedText, range.location, range.length, replacementString);
|
||||
}
|
||||
|
||||
if (this.width === 'auto') {
|
||||
// if the textfield is in auto size we need to request a layout to take the new text width into account
|
||||
this.requestLayout();
|
||||
}
|
||||
this.firstEdit = false;
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user