xamarin/Xamarin.Forms

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

オープン

#7,280 opened on 2019/08/26

 (5 件のコメント) (2 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/2 :clock2:good first issuehackathonhelp wantedinactivep/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド