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

A Slider control that's rotated by 90 degrees does not respect boundaries #23806

Open
robopp55 opened this issue Jul 24, 2024 · 2 comments
Open
Labels
area-controls-slider Slider platform/android 🤖 platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@robopp55
Copy link

robopp55 commented Jul 24, 2024

Description

Rotating a Slider control 90 degrees causes the control to draw itself outside the bounds of a layout.

NOTE: I've only tried this on an actual iOS device (iPhone 14 Pro Max, iOS version 17.6) so I'm not sure if it's isolated to iOS or both iOS and Android.

Steps to Reproduce

  1. Create a new .NET MAUI project.
  2. Replace MainPage.xml with the following:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiApp5.MainPage">

    <Grid BackgroundColor="Red"
          RowDefinitions="50*,50*">
        <Slider Grid.Row="0"
                Rotation="90"/>
    </Grid>
</ContentPage>
  1. Run it on an iOS device and see that the start of the Slider control is drawn under the title bar.

Having a Shell TabBar causes similar issues with the Slider control drawing itself under the TabBar if Grid.Row="1" is used.

IMG_0103

Link to public reproduction project repository

No response

Version with bug

8.0.70 SR7

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

iOS 17.6

Did you find any workaround?

No response

Relevant log output

No response

@robopp55 robopp55 added the t/bug Something isn't working label Jul 24, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03
Copy link

I can repro this issue at Android & IOS platform on the latest 17.11.0 Preview 5.0 (8.0.70 & 8.0.3)
I try to set Rotation="90" or "120" both of them can repro this issue.
Slider

@ninachen03 ninachen03 added platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 25, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-slider Slider platform/android 🤖 platform/iOS 🍎 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

4 participants