[ios,Android] Scrolling area not recalculated on Rotation for ScrollView or Listview in a ContentView
#3779 aperta il 13 set 2018
Metriche repository
- Star
- (5644 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Description
I have a page that contains a StackedLayout, one child of the StackedLayout is a ContentView, and the ContentView contains a ListView or a ScrollView. If the page is created in Portrait Orientation, then the device is rotated to Landscape, the scrolling area does not increase so you can not scroll to the bottom items
Possibly related to https://bugzilla.xamarin.com/show_bug.cgi?id=52510 https://github.com/xamarin/Xamarin.Forms/pull/3205
Steps to Reproduce
- Run the attached sample program while holding the device in Portrait mode. Look at the number of items in the listview.
- Rotate the device to Landscape and attempt to scroll to the end of the list
- Rotate back to Portrait mode and open the menu (It is a Master/Detail page)
- Choose another page and repeat the steps above. 5, Rotate the device to Landscape mode, open the menu, choose one of the pages. Note that now you can scroll to the last element.
Expected Behavior
Upon rotation to Landscape you should be able to scroll through the full page.
Actual Behavior
The scrolling is limited to the amount of scrolling that was available in Portrait Orientation.
Basic Information
- Version with issue: 3.2 pre3 and 3.1
- Last known good version: could not find one, only went back to 3.0
- IDE: VS2017
- Platform Target Frameworks:
- iOS: 11.2
- Android: 8.1
- Android Support Library Version:
- Nuget Packages:
- Affected Devices:
Screenshots
Reproduction Link
ContentView_Rotation_Scroll.zip
Here's a netstandard version of the repro