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

ScrollView‘s HorizontalScrollBar is not visible and ScrollView cannot scroll horizontally #9000

Closed
jessiezh0320 opened this issue Jul 26, 2022 · 4 comments · Fixed by #13623
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/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@jessiezh0320
Copy link

Description

ScrollView‘s HorizontalScrollBar is not visible and ScrollView cannot scroll horizontally.

Steps to Reproduce

1.create a maui app;
2.add the following code in MainPage.xaml

  <ScrollView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" VerticalScrollBarVisibility="Always" HorizontalScrollBarVisibility="Always">
    <StackLayout>
        <Image
            Source="dotnet_bot.png"
            SemanticProperties.Description="Cute dot net bot waving hi to you!"
             WidthRequest="800"                
             />

    </StackLayout>
</ScrollView>

Version with bug

6.0.408 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

android 10.0

Did you find any workaround?

No response

Relevant log output

No response

@jessiezh0320 jessiezh0320 added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 26, 2022
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Jul 26, 2022
@petitoff
Copy link

I confirm the problem. Vertically and horizontally not displayed.

@jfversluis
Copy link
Member

Hey there thanks for the report! Did you also see and set the Orientation property on the ScrollView? By default it's set to vertical. If that isn't it, please provide a full reproduction project through a GitHub repository that we can look at. Thanks!

@jfversluis jfversluis added s/needs-repro Attach a solution or code which reproduces the issue and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 28, 2022
@ghost
Copy link

ghost commented Jul 28, 2022

Hi @jessiezh0320. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

@micampbell
Copy link

micampbell commented Jul 30, 2022

I started this at (https://stackoverflow.com/questions/73102070/horizontal-scroll-is-not-working-in-maui-what-am-i-missing-or-is-this-a-bug), so I suppose I ought to help out ;)

here is the repro-repo: https://github.com/micampbell/NoHorizScrollBugRepro

I notice the bug on the Windows platform, but as @jessiezh0320, it may be on Android as well. Perhaps on all?

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jul 30, 2022
@hartez hartez added the area-controls-scrollview ScrollView label Oct 9, 2022
@rmarinho rmarinho self-assigned this Mar 2, 2023
@rmarinho rmarinho moved this from Todo to In Progress in MAUI SDK Ongoing Mar 2, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in MAUI SDK Ongoing Mar 8, 2023
@samhouts samhouts added this to the .NET 8 Planning milestone Mar 17, 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
@ghost ghost locked as resolved and limited conversation to collaborators May 12, 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/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants