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 when content is translated or scaled. #15138

Open
JPfahl opened this issue May 17, 2023 · 7 comments
Open

IsClippedToBounds not working when content is translated or scaled. #15138

JPfahl opened this issue May 17, 2023 · 7 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 platform/iOS 🍎 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@JPfahl
Copy link

JPfahl commented May 17, 2023

Description

IsClippedToBounds is not being honored when the content of a contentview or stacklayout (any type) is translated or scaled.
I am using translation and scale to zoom and pan images. This used to work.

Steps to Reproduce

<ContentView IsClippedToBounds="true" BackgroundColor="Red" HeightRequest="200"> <BoxView HeightRequest="200" WidthRequest="200" BackgroundColor="Green" TranslationY="100"/> </ContentView>

image

Link to public reproduction project repository

none

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows

Affected platform versions

iOS 15.5, android api33, windows 10.0.19041

Did you find any workaround?

No

Relevant log output

No response

@JPfahl JPfahl added the t/bug Something isn't working label May 17, 2023
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 17, 2023
@PureWeen
Copy link
Member

@JPfahl

This used to work.

Where did this used to work? Xamarin.Forms? Previous version of MAUI?

@PureWeen PureWeen added the s/needs-info Issue needs more info from the author label May 17, 2023
@ghost
Copy link

ghost commented May 17, 2023

Hi @JPfahl. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@JPfahl
Copy link
Author

JPfahl commented May 17, 2023

It work in previous versions of .NET Maui. Can't say for sure exactly when it broke.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels May 17, 2023
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 13, 2023
@XamlTest
Copy link

Verified this on Visual Studio Enterprise 17.7.0 Preview 3.0. Repro on Windows 11, Android 13.0-API33 and iOS 16.4 with below Project:
15138.zip

image

@AlleSchonWeg
Copy link
Contributor

@JPfahl

This used to work.

Where did this used to work? Xamarin.Forms? Previous version of MAUI?

Same problem. It works with Xamarin.Forms on Android and iOS. But not with Maui.

@jsuarezruiz jsuarezruiz added s/try-latest-version Please try to reproduce the potential issue on the latest public version and removed s/needs-attention Issue has more information and needs another look labels Jun 6, 2024
Copy link
Contributor

Hi @JPfahl. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 7, 2024
@jsuarezruiz jsuarezruiz removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jun 7, 2024
@JPfahl
Copy link
Author

JPfahl commented Jun 11, 2024

I just re-tested this with the latest Version 17.11.0 Preview 1.1 with 9.0.0-preview.4.10690 using the supplied code:

<ContentView IsClippedToBounds="true" BackgroundColor="Red" HeightRequest="200"> <BoxView HeightRequest="200" WidthRequest="200" BackgroundColor="Green" TranslationY="100"/> </ContentView>

and it is still not fixed:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 platform/iOS 🍎 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants