Skip to content

Path does not render if it has Margin #13801

Description

@etvorun

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" Margin="1" />
    <Path Stroke="Black" Data="m 0 0 l 23 0 l 0 23 l -23 0 l 0 -23 z" Margin="1" />
  </HorizontalStackLayout>
</ScrollView>
  1. Build and run
    Actual: nothing rendered within app
    Expected: two rectangles rendered within app
    Note: deleting or changing Margin to "0" fixes issue, i.e. rectangles are correctly rendered.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions