xamarin/Xamarin.Forms

[Bug] Material Activity Indicator has unusual large size on iOS

オープン

#6,374 opened on 2019/05/31

 (0 件のコメント) (1 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/visuale/3 :clock3:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

On iOS devices, the Activity Indicator with Visual property set to Material takes a large size. This occurs when either WidthRequest or HeightRequest properties are not set.

Steps to Reproduce

  1. Create ActivityIndicator control in xaml.
  2. Set Visual property to Material
  3. Don't set HeightRequest and WidthRequest properties to the control.

Expected Behavior

The Material Activity Indicator should take the default dimensions of 48x48 as specified in google_material_docs

Actual Behavior

The Material Activity Indicator takes up a large size

Basic Information

  • Version with issue: Xamarin.Forms 4.0.0.394984-pre10, Xamarin.Forms.Visual.Material 4.0.0.394984-pre10.

I have also tried with stable version Xamarin Forms 4.0.0.471375 and Xamarin.Forms.Visual.Material 4.0.0.471375

  • Last known good version:
  • IDE: VS2019
  • Platform Target Frameworks:
    • iOS: 11
  • Affected Devices: All iOS devices

Screenshots

ezgif com-optimize

Reproduction Link

I have noticed this bug in Hanselman.Forms repo on the PodcastDetailsPage. Here is the issue which tracks it. A temporary workaround is to set the WidthRequest to 48

Note

However I have tried this in the MaterialActivityIndicatorGallery by removing the HeightRequest, but the bug does not appear.

コントリビューターガイド