Skip to content

Path does not update its layout when Data is modifiedΒ #13802

Closed

Description

@etvorun

Description

Editing Path.Data via XAML Hot Reload does not update layout

Steps to Reproduce

Description

Path does not render it is has non-default Margin

Steps to Reproduce

  1. Create new MAUI app.
  2. Set Windows as active platforms.
  3. Open MainPage.xaml and replace content of ContentPage element with
<ScrollView>
  <HorizontalStackLayout VerticalOptions="Center">
    <Path Stroke="Black" Data="m 0 0 l 23 0 l 0 23 l -23 0 l 0 -23 z"  />
    <Path Stroke="Black" Data="m 0 0 l 23 0 l 0 23 l -23 0 l 0 -23 z"  />
  </HorizontalStackLayout>
</ScrollView>
  1. Make sure Tools > Options > Debugging > XAML Hot Reload is enabled.
  2. Build and run
  3. Back to VS and MainPage.xaml. Replace all occurrences of "23" with "34". This should make rectangles bigger.
    Actual: rectangles rendered as clipped at their original size
    Expected: rectangles rendered unclipped
    Note: if you select all Path elements, delete and undo then they are rendered correctly.

Link to public reproduction project repository

n/a

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Win 22H2

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. added
    t/bug
    on Mar 9, 2023
  2. added
    area-drawing
    on Mar 9, 2023
  3. self-assigned this
    on Mar 9, 2023
  4. added this to the Backlog milestone on Mar 9, 2023
  5. moved this from Todo to In Progress in MAUI SDK Ongoingon Mar 10, 2023
  6. added a commit that references this issue on Mar 15, 2023
    0b5f036
  7. moved this from In Progress to Done in MAUI SDK Ongoingon Mar 15, 2023
  8. added
    fixed-in-8.0.0-preview.3.8149
    on Apr 12, 2023
  9. ghost locked as resolved and limited conversation to collaborators on May 12, 2023
  10. modified the milestones: Backlog, .NET 8 on May 24, 2023
  11. added
    partner/hot-reload-xaml
    on Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-drawingfixed-in-8.0.0-preview.3.8149partner/hot-reload-xamlplatform/windowst/bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions