未验证 提交 1ab99fb3 编写于 作者: C Chris Yang 提交者: GitHub

fix a bug where the platform view's transform is not reset before set frame (#9490)

上级 aa9b3a18
......@@ -230,9 +230,10 @@ UIView* FlutterPlatformViewsController::ReconstructClipViewsChain(int number_of_
void FlutterPlatformViewsController::ApplyMutators(const MutatorsStack& mutators_stack,
UIView* embedded_view) {
FML_DCHECK(CATransform3DEqualToTransform(head.layer.transform, CATransform3DIdentity));
UIView* head = embedded_view;
head.clipsToBounds = YES;
head.layer.transform = CATransform3DIdentity;
ResetAnchor(head.layer);
std::vector<std::shared_ptr<Mutator>>::const_reverse_iterator iter = mutators_stack.bottom();
......@@ -278,6 +279,7 @@ void FlutterPlatformViewsController::CompositeWithParams(
const flutter::EmbeddedViewParams& params) {
CGRect frame = CGRectMake(0, 0, params.sizePoints.width(), params.sizePoints.height());
UIView* touchInterceptor = touch_interceptors_[view_id].get();
touchInterceptor.layer.transform = CATransform3DIdentity;
touchInterceptor.frame = frame;
int currentClippingCount = CountClips(params.mutatorsStack);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册