Skip to content

[Android][iOS/Catalyst] Rectangle rendering is broken #18628

@nor0x

Description

@nor0x

Description

the following code creates a Rectangle that fills the parent Grid which is not correct. On Windows it renders as expected with the correct WidthRequest

<Grid HeightRequest="100" WidthRequest="600" BackgroundColor="White">
    <Rectangle Fill="Red" WidthRequest="10" VerticalOptions="Fill" />
</Grid>
IMG12561536

haven't tested on iOS

Steps to Reproduce

  1. Create File New App
  2. Add this code
<Grid HeightRequest="100" WidthRequest="600" BackgroundColor="White">
    <Rectangle Fill="Red" WidthRequest="10" VerticalOptions="Fill" />
</Grid>

check Rectangle on Android

Link to public reproduction project repository

No response

Version with bug

8.0.0-preview.1.7762

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 13

Did you find any workaround?

use BoxView

Relevant log output

No response

Metadata

Metadata

Labels

area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions