Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug][Brushes] LinearGradientBrush diagonal platform differences #11571

Closed
davidbritch opened this issue Jul 27, 2020 · 2 comments · Fixed by #11734
Closed

[Bug][Brushes] LinearGradientBrush diagonal platform differences #11571

davidbritch opened this issue Jul 27, 2020 · 2 comments · Fixed by #11734
Assignees
Labels
a/brushes e/4 🕓 4 in-progress This issue has an associated pull request that may resolve it! t/bug 🐛
Milestone

Comments

@davidbritch
Copy link

Description

I've painted three LinearGradientBrush objects in Frame objects:

  1. Horizontal - from (0,0) to (1,0).
  2. Vertical - from (0,0 to (0,1).
  3. Diagonal - from (0,0) to (1,1).

All three gradients move from yellow to green.

On iOS, the three gradients are painted correctly.

On Android, the diagonal gradient goes horizontally from green to yellow. Therefore, not only is the colour order wrong, the direction is also wrong.

On UWP, the diagonal gradient is identical to the horizontal gradient.

See the screenshots below.

Steps to Reproduce

  1. Run the attached sample.
  2. Browse to the linear gradient brush demo page on iOS, Android, and UWP.

Expected Behavior

Three correct linear gradients - horizontal, vertical, and diagonal.

Actual Behavior

Three correct linear gradients on iOS. Diagonal gradients incorrect on Android and UWP.

Basic Information

  • Version with issue: 4.8-pre2
  • IDE: VSMac 8.6.7
  • Platform Target Frameworks:
    • iOS: 13.6
    • Android: API 28
    • UWP: 10.0.18362.0

Screenshots

iOS:

Simulator Screen Shot - iPhone 11 - 2020-07-27 at 10 10 22

Android:

Screenshot_1595841175

UWP:

uwp01

Reproduction Link

BrushesDemos.zip

@davidbritch davidbritch added t/bug 🐛 s/unverified New report that has yet to be verified labels Jul 27, 2020
@PureWeen
Copy link
Contributor

PureWeen commented Aug 4, 2020

@jsuarezruiz

@jsuarezruiz
Copy link
Contributor

I have done tests directly in a native App in UWP and I get the same result:
Captura de pantalla 2020-08-10 a las 13 26 01

@jsuarezruiz jsuarezruiz added e/4 🕓 4 and removed s/unverified New report that has yet to be verified labels Aug 10, 2020
@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Aug 10, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/brushes e/4 🕓 4 in-progress This issue has an associated pull request that may resolve it! t/bug 🐛
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants