Skip to content

Refactor shapes to remove legacy ArbritaryShapeBase on WASM #2983

Closed

Description

@BrianDT

⬇️ ⬇️ FOR MORE INFO, SCROLL TO COMMENTS BELOW ⬇️ ⬇️

Current behavior

In the example when an ellipse is resized by a visual state change trigger the parent stackpanel does not resize.

Expected behavior

WASM should beave the same as the UWP and Android builds.

How to reproduce it (as minimally and precisely as possible)

Reproduced in a sample project here:
https://github.com/BrianDT/UnoGeometryIssues

Environment

Nuget Package: Uno.UI

Package Version(s): 2.2.0-dev.445

Affected platform(s):

  • iOS
  • Android
  • [ x] WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • [x ] 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Apr 13, 2020
  2. jeromelaban commented on Apr 13, 2020

    @jeromelaban
    Member

    /cc @dr1rrb does it look familiar ?

  3. dr1rrb commented on Apr 13, 2020

    @dr1rrb
    Member

    No idea for this one... To fix it, I would think that the easiest solution should be to multi-target what I did for iOS (and MacOS): #2911

  4. added this to the 3.1 milestone on Aug 29, 2020
  5. removed
    triage/untriaged
    on Aug 29, 2020
  6. removed this from the 3.1 milestone on Aug 31, 2020
  7. modified the milestones: HighPriority, 3.1 on Sep 1, 2020
  8. added
    project/layout 🧱
    on Sep 21, 2020
  9. self-assigned this
    on Sep 22, 2020
  10. carldebilly commented on Sep 22, 2020

    @carldebilly
    Member

    Investigations

    • I confirm the problem is present on WASM on both Uno v2.4.0 and v3.1.0-dev.389 (latest prerelease version)
    • I confirm the problem is not present on Android, both Uno v2.4.0 and v3.1.0-dev.389 (latest prerelease version)
    • I added a SKIA head to the sample app and the problem is NOT present on Skia using v3.1.0-dev.389 (latest prerelease version)

    So I confirm it's a WASM-only bug and still present in latest version of Uno.

    I also managed to isolate the problem into a self-contained XAML and I reproduced the problem on the Uno Playground. New updated version here.

  11. carldebilly commented on Sep 22, 2020

    @carldebilly
    Member

    Shapes on WASM are using a legacy ArbritraryShapeBase which should soon be refactored to use the new approach introduced by the PR #2997 on iOS and refactored for Skia in PR #3652.

    I'll change the title of this issue to better reprensent the action item to resolved this issue, which is a refactoring.

  12. changed the title [-]Under WASM when an element resizes the surrounding stackpanel does not resize.[/-] [+]Refactor shapes to remove legacy ArbritaryShapeBase on WASM[/+] on Sep 22, 2020
  13. removed their assignment
    on Sep 22, 2020
  14. removed this from the 3.1 milestone on Sep 23, 2020
  15. added
    project/shapes-brushes 🔶
    on Sep 23, 2020
  16. added
    difficulty/tbd
    on Feb 15, 2021
  17. added
    difficulty/starter 🚀
    and removed
    difficulty/tbd
    on Jun 1, 2021
  18. BrianDT commented on Oct 18, 2021

    @BrianDT
    Author

    Is there any workaround for this issue? As the issue is still present in 3.10.11 and it is delaying the replacement of an old Silverlight app.

  19. sasakrsmanovic commented on Oct 18, 2021

    @sasakrsmanovic
    Contributor

    Hello @BrianDT - would you kindly reach out to me at [email protected] I'd love to understand your migration project and help you through with it. Thanks!!

  20. BrianDT commented on Jul 12, 2022

    @BrianDT
    Author

    The sample has been updated to show that this is still an issue in 4.4.13. About time this was stored eh!

  21. BrianDT commented on Nov 1, 2022

    @BrianDT
    Author

    Confirmed as resolved in Uno.UI 4.5.9
    The sample has been updated to validate this.
    The issue can now be closed

  22. changed the title [-]Refactor shapes to remove legacy ArbritaryShapeBase on WASM[/-] [+]Refactor shapes to remove legacy `ArbritaryShapeBase` on WASM[/+] on Jun 12, 2023
  23. self-assigned this
    on Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/starter 🚀kind/bugproject/layout 🧱project/shapes-brushes 🔶

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions