Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

fix the calculations of the needed size of a ScollView on Android (Issue 15100) #15101

Merged
merged 5 commits into from
Jul 11, 2022

Conversation

heikow10
Copy link
Contributor

@heikow10 heikow10 commented Jan 27, 2022

Description of Change

The calculations of the needed size of a ScollView on Android do now always consider all Margins of its child view and all Paddings of the ScrollView.

Issues Resolved

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

Now a ScrollView takes up all the space needed by the size of its child view, the Margins of the child view and the Paddings of the ScrollView.
So it is possible to see the complete child view and the complete Padding/Margin surrounding the child view.

Before/After Screenshots

Screenshot_20220127_142147_com companyname xamarinformsscrollviewsizebug_shrinked
Screenshot_20220127_144226_com companyname xamarinformsscrollviewsizebug_shrinked

Testing Procedure

  • Android: description can be seen in Issue15100.cs
  • iOS: not able to test this
  • UWP: bug is not present

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@jfversluis
Copy link
Member

@heikow10 would you be able to confirm that this is still necessary in the latest version of Xamarin.Forms? I know we did some fix(es) in the meanwhile for the ScrollView

@jfversluis
Copy link
Member

jfversluis commented Jul 11, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jfversluis
Copy link
Member

Yep, this seems still needed. Verified that this issue doesn't exist in .NET MAUI.

Thanks for another great contribution @heikow10 !

@jfversluis jfversluis merged commit 914ff08 into xamarin:5.0.0 Jul 11, 2022
@heikow10
Copy link
Contributor Author

@jfversluis My response is a little bit late. But I can confirm that the fix was still relevant. So thanks for merging!

@heikow10 heikow10 deleted the issue-15100 branch July 11, 2022 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] ScrollView's size does not consider all Margins and Paddings on Android
2 participants