Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a531232

Browse files
authored
fix(ios): invalid transform if set before any layout (#10675)
[skip ci]
1 parent 0eb2745 commit a531232

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

packages/core/ui/core/view/index.ios.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class View extends ViewCommon implements ViewDefinition {
4242
private _modalAnimatedOptions: Array<boolean>;
4343
private _isLaidOut = false;
4444
private _hasTransform = false;
45-
private _hasPendingTransform = false;
4645
private _privateFlags: number = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT;
4746
private _cachedFrame: CGRect;
4847
private _suspendCATransaction = false;
@@ -68,7 +67,6 @@ export class View extends ViewCommon implements ViewDefinition {
6867
this._cachedFrame = null;
6968
this._isLaidOut = false;
7069
this._hasTransform = false;
71-
this._hasPendingTransform = false;
7270
}
7371

7472
public requestLayout(): void {
@@ -140,10 +138,6 @@ export class View extends ViewCommon implements ViewDefinition {
140138
}
141139

142140
this.updateBackground(sizeChanged, needsLayout);
143-
if (this._hasPendingTransform) {
144-
this.updateNativeTransform();
145-
this._hasPendingTransform = false;
146-
}
147141
this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
148142
}
149143

@@ -400,11 +394,6 @@ export class View extends ViewCommon implements ViewDefinition {
400394
}
401395

402396
public updateNativeTransform() {
403-
if (!this.isLayoutValid) {
404-
this._hasPendingTransform = true;
405-
return;
406-
}
407-
408397
const scaleX = this.scaleX || 1e-6;
409398
const scaleY = this.scaleY || 1e-6;
410399
const perspective = this.perspective || 300;

0 commit comments

Comments
 (0)