question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] AvatarView clipping on Android isn't applied correctly

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I updated to latest version yesterday and this issue appeared, when I use toolkit AvatarView

image

image

Expected Behavior

before update the AvatarView control was working well as I expected … the circle image showing well without black borders or black background as I show you in Current Behavior section in images.

Steps To Reproduce

  1. Add an AvatarView control.
  2. Set as the ImageSource a Uri as image.

Link to public reproduction project repository

https://github.com/GeorgeLeithead/CommunityToolkitMaui/tree/510-Bug

Environment

- .NET MAUI CommunityToolkit: 1.2.0
- OS: Windows 10 Build 10.0.19041.0
- .NET MAUI: 6.0.408

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
GeorgeLeitheadcommented, Sep 22, 2022

@GeorgeLeithead, is this familiar to you?

@pictos No, but I very much suspect it is an effect from applying the clip rect bounds and starting from 0,0 instead of taking into account the border width. Assign to me and I can investigate and resolve as appropriate.

2reactions
pictoscommented, Sep 22, 2022

@GeorgeLeithead, is this familiar to you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Border-Clipping Issue In Android #10311 - dotnet/maui
If you apply a background color to the image you can see that it is clipping but the size is not correct.
Read more >
Xamarin.Forms 5.0.0.2612 (5.0.0 Service Release 15) ...
Release notes detailing new features, improvements, and issues fixed in Xamarin.Forms 5.0.0.2612 (5.0.0 Service Release 15)
Read more >
CommunityToolkit/Maui 1.4.0 on GitHub
Note Expander is not currently supported inside of CollectionView or ListView: #742 ... FIX: AvatarView clipping on Android isn't applied correctly by ...
Read more >
Essential Studio for Xamarin.Forms Release Notes
#243890 - [Android] CustomMarker is not clipped when applying translation to template child view. #241737 - [Android, iOS] Marker will be ...
Read more >
ImageView | Android Developers
ImageView is also commonly used to apply tints to an image and handle image ... Whether the View's Outline should be used to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found