mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +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) {
|
if (this.formattedText) {
|
||||||
_updateCharactersInRangeReplacementString(this.formattedText, range.location, range.length, replacementString);
|
_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;
|
this.firstEdit = false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user