-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Comments
Where did this used to work? |
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. |
It work in previous versions of .NET Maui. Can't say for sure exactly when it broke. |
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: |
Same problem. It works with |
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. |
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:
and it is still not fixed: |
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>
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
The text was updated successfully, but these errors were encountered: