xamarin/Xamarin.Forms

[Bug] Xamarin RotateTo is not rotating from center ( images or views ) on UWP

开放

#7,280 创建于 2019年8月26日

 (5 条评论) (2 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/2 :clock2:good first issuehackathonhelp wantedinactivep/UWPt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

I am trying to rotate images and views, and I've tried most of I've been figuring to fix the issue without luck.

On Android images and views are rotating properly from the center, but on UWP there's a displacement and it's just at center each 4 rotations. Then things like spinners are rendering really ugly.

Steps to Reproduce

  1. RotateTo to a view or image to get 360 rotation.
  2. In UWP you'll see that the rotation centre is moving and it's not rotating from an stable point.

Expected Behavior

Rotate from the center.

Actual Behavior

Rotation centre is moving and it's not rotating from an stable point

Basic Information

  • Version with issue: 4.2.0.709249
  • Last known good version: Not sure, I haven't seeing it working.
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:
    • Android: 9.0
    • UWP: 16299

Screenshots

Gif showing the bad rotation

See that while rotate, at left you'll see the squares aren't matching, just one time of each 4-5 rotations. On Android this is not happening.

Reproduction Link

Sample project reproducing the issue.

Check at left side of both squares, if they were rotating over the same center then on each rotation they'll get completely overlapped.

But what's happening is, instead of that, you'll see that a line of of blue marine is getting shown in all spins. And each 4-5 spins they are completely overlapped.

If instead of rotating squares you try with a circle for a spinner; you'll see an effect like a deflated tire..

This is happening on UWP, on Android works properly.

贡献者指南