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

Setting ScrollView.Orientation has no effect on iOS #13412

Closed
Glorfindel83 opened this issue Feb 17, 2023 · 2 comments · Fixed by #13657
Closed

Setting ScrollView.Orientation has no effect on iOS #13412

Glorfindel83 opened this issue Feb 17, 2023 · 2 comments · Fixed by #13657
Assignees
Labels
area-controls-scrollview ScrollView fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! platform/iOS 🍎 t/bug Something isn't working

Comments

@Glorfindel83
Copy link

Glorfindel83 commented Feb 17, 2023

Description

No matter what value I set for a ScrollView's Orientation property, I can scroll in all directions on iOS.

Simulator Screen Shot - iPhone SE (3rd generation) - 2023-02-17 at 10 16 19

Steps to Reproduce

  1. Create a new .NET MAUI App (I'm targeting .NET 6.0, not sure if that makes a difference)
  2. Replace the XAML of the MainPage with
<?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="MyMAUIApp.MainPage">
    <ScrollView Orientation="Vertical" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Red">
        <BoxView HeightRequest="800" WidthRequest="800" Color="Transparent">
            <BoxView.Background>
                <LinearGradientBrush>
                    <GradientStop Color="Yellow" Offset="0.1" />
                    <GradientStop Color="Green" Offset="1.0" />
                </LinearGradientBrush>
            </BoxView.Background>
        </BoxView>
    </ScrollView>
</ContentPage>
  1. Remove everything but the constructor in MainPage.xaml.cs, to make sure the project compiles
  2. Run the app on an iPhone SE simulator
  3. Observe that you can scroll both horizontally and vertically (see screenshot above)

Link to public reproduction project repository

n/a

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.2

Did you find any workaround?

Listen to the Scrolled event and make sure it always scrolls to 0, e.g. with

HorizontalScrollView.ScrollToAsync(e.ScrollX, 0, false);

Relevant log output

No response

@Glorfindel83 Glorfindel83 added the t/bug Something isn't working label Feb 17, 2023
@Glorfindel83
Copy link
Author

Perhaps related: #7811 and #7979

@ghost
Copy link

ghost commented Feb 17, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Feb 17, 2023
@rmarinho rmarinho added the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Mar 1, 2023
@dotnet dotnet deleted a comment Mar 1, 2023
@rmarinho rmarinho removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Mar 1, 2023
@rmarinho rmarinho self-assigned this Mar 1, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! label Apr 12, 2023
@dotnet dotnet locked as resolved and limited conversation to collaborators May 12, 2023
@samhouts samhouts modified the milestones: Backlog, .NET 8 May 24, 2023
@Eilon Eilon removed the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-scrollview ScrollView fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants