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

[proposal] Add IgnoreSafeArea #17803

Closed
wants to merge 1 commit into from
Closed

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Oct 3, 2023

Description of Change

On the template the ScrollView currently has scrollbars because the content is allowed to scroll into the navbar area. If we add IgnoreSafeArea and map this to ContentInsetAdjustmentBehavior then the ScrollView

Areas to Investigate

  • are we going to get colliding behavior letting iOS manage these insets for us? should we be settings these insets ourselves to ensure that all inset related code is cooperative?
  • Should we just leave this alone until we get better defined safearea APIS and set the safearea platform specific on our templates to "True" so it doesn't have scrollbars?

Issues Fixed

Fixes #17224

@@ -137,6 +137,7 @@ public void SetScrolledPosition(double x, double y)
View _content;
TaskCompletionSource<bool> _scrollCompletionSource;
Rect _layoutAreaOverride;
private bool _ignoreSafeArea;
Copy link
Member Author

@PureWeen PureWeen Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to make this value a different default for catalyst vs iOS. Otherwise, the scrollviews content might go into the titlebar

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Oct 3, 2023
@samhouts samhouts added this to the .NET 8 GA milestone Oct 5, 2023
@PureWeen PureWeen closed this Oct 11, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[regression/8.0.0-rc.1.9171] ScrollView always has a scroll bar on iOS
3 participants