xamarin/Xamarin.Forms

[ios,Android] Scrolling area not recalculated on Rotation for ScrollView or Listview in a ContentView

开放

#3,779 创建于 2018年9月13日

 (2 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/listviewa/scrollviewe/4 :clock4:help wantedinactivep/Androidp/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

  1. Run the attached sample program while holding the device in Portrait mode. Look at the number of items in the listview.
  2. Rotate the device to Landscape and attempt to scroll to the end of the list
  3. Rotate back to Portrait mode and open the menu (It is a Master/Detail page)
  4. 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

MasterDetailTest.zip

贡献者指南