mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix failing test on ios 11 (#4686)
Add new perf-test page for view recycling Changed the initialization of TextTransformation field
This commit is contained in:
@@ -132,7 +132,7 @@ export class ImageSource implements ImageSourceDefinition {
|
||||
|
||||
const data = getImageData(this.ios, format, quality);
|
||||
if (data) {
|
||||
return data.writeToFileAtomically(path, true);
|
||||
return NSFileManager.defaultManager.createFileAtPathContentsAttributes(path, data, null);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -57,6 +57,7 @@ export class TextBase extends TextBaseCommon {
|
||||
private _maxLines: number;
|
||||
|
||||
public initNativeView(): void {
|
||||
initializeTextTransformation();
|
||||
const nativeView = this.nativeViewProtected;
|
||||
this._defaultTransformationMethod = nativeView.getTransformationMethod();
|
||||
this._minHeight = nativeView.getMinHeight();
|
||||
@@ -123,8 +124,6 @@ export class TextBase extends TextBaseCommon {
|
||||
return;
|
||||
}
|
||||
|
||||
initializeTextTransformation();
|
||||
|
||||
const spannableStringBuilder = createSpannableStringBuilder(value);
|
||||
nativeView.setText(<any>spannableStringBuilder);
|
||||
|
||||
@@ -150,7 +149,6 @@ export class TextBase extends TextBaseCommon {
|
||||
return;
|
||||
}
|
||||
|
||||
initializeTextTransformation();
|
||||
this.nativeViewProtected.setTransformationMethod(new TextTransformation(this));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user