dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.17k stars 1.74k forks source link

Gray Line Appears on the Right Side of GraphicsView with Decimal WidthRequest on iOS Platform #25502

Open surya3655 opened 2 days ago

surya3655 commented 2 days ago

Description

When trying to draw something using GraphicsView and IDrawable, if the WidthRequest is set to a decimal value like 0.25 or 0.75 and a background is applied to the GraphicsView, a gray line appears on the right side of the view on the iOS platform.

Steps to Reproduce

  1. Create a new class GraphicsDrawable that implements the IDrawable interface.
  2. Implement the Draw method in the class.
  3. Attach this GraphicsDrawable class to a control that requires drawing, such as a GraphicsView. Set the drawable to an instance of GraphicsDrawable, and configure the GraphicsView with the following properties:
  4. Set the Background to white.
  5. Set the WidthRequest to 498.25.
  6. Run the application.
  7. You will observe a gray line appearing on the right side of the GraphicsView on the iOS platform.

Link to public reproduction project repository

https://github.com/surya3655/DrawingIssue.git

Version with bug

8.0.92 SR9.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

IPAD 17.4, 10generation

Did you find any workaround?

No

Relevant log output

Output IOS: Image

ninachen03 commented 1 day ago

This issue has been verified using Visual Studio 17.12.0 Preview 3(8.0.91 & 8.0.80). Can repro this issue at iOS platform. Image