Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsClippedToBounds not working on iOS #19

Closed
tomh4 opened this issue Jun 9, 2021 · 1 comment
Closed

IsClippedToBounds not working on iOS #19

tomh4 opened this issue Jun 9, 2021 · 1 comment
Labels
not reproducible I couldn't replicate the issue

Comments

@tomh4
Copy link

tomh4 commented Jun 9, 2021

Platform (please complete the following information):

  • OS: [iOS]
  • Device: [iPhoneXR/iPhoneSimulator]
  • Sdk vervion: [iOS 14.5]
  • Xamarin.Forms: [5.0.0.2012]
  • Sharpnado.MaterialFrame: [1.1.4]

Describe the bug
When adding an image to a rounded MaterialFrame with IsClippedToBounds="True" the image is not clipped on iOS where everything works as expected on Android.

To Reproduce
-Add a MaterialFrame
-Set Padding to 0
-Add image inside

<effects:MaterialFrame Margin="12" HasShadow="True" Padding="0" 
                                    HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" 
                                    Grid.Row="0" Grid.Column="0" Elevation="20"
                                    CornerRadius="32" >
          <Image Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Source="{Binding CoverMedia}"/>
</effects:MaterialFrame>

Screenshots (if applicable)
Result:
image
Expected Result:
image

@roubachof
Copy link
Owner

Cannot reproduce with material frame 1.2:

image

<rv:MaterialFrame Margin="12"
                              Padding="0"
                              HorizontalOptions="FillAndExpand"
                              VerticalOptions="FillAndExpand"
                              CornerRadius="32"
                              IsClippedToBounds="True">
    <Image Source="{images:ImageResource me.jpg}" />
</rv:MaterialFrame>

also, you forgot to set IsClippedToBounds="True" in your xaml :)

@roubachof roubachof added the not reproducible I couldn't replicate the issue label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not reproducible I couldn't replicate the issue
Projects
None yet
Development

No branches or pull requests

2 participants