mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): unset cached frame before updating origin point (#10499)
This commit is contained in:
committed by
GitHub
parent
0c8c945b33
commit
3a486e540c
@@ -444,8 +444,13 @@ export class View extends ViewCommon implements ViewDefinition {
|
||||
CATransaction.setDisableActions(true);
|
||||
|
||||
nativeView.layer.anchorPoint = newPoint;
|
||||
|
||||
// Bounds have to be recalculated after anchor point update
|
||||
if (this._cachedFrame) {
|
||||
this._setNativeViewFrame(nativeView, this._cachedFrame);
|
||||
const frame = this._cachedFrame;
|
||||
|
||||
this._cachedFrame = null;
|
||||
this._setNativeViewFrame(nativeView, frame);
|
||||
}
|
||||
|
||||
// Make sure new origin also applies to outer shadow layers
|
||||
|
||||
Reference in New Issue
Block a user