xamarin/Xamarin.Forms

[Bug] [UWP][Android] Grid.WidthRequest=0 ignored when changed during runtime

オープン

#6,287 opened on 2019/05/23

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/layoute/6 :clock6:help wantedinactivep/Androidp/UWPt/bug :bug:up-for-grabs

Repository metrics

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

説明

Description

When setting the WidthRequest for a Grid at runtime, setting it to 0 is ignored while settig it to positive values works. This occurs on UWP and Android. Works as expected on iOS.

Steps to Reproduce

  1. Open the attached test project
  2. Deploy to UWP or Android
  3. Observe the red rectangle on the left with width of 200
  4. Click the 0px button

Expected Behavior

Red rectangle should disappear.

Actual Behavior

Red rectangle remains at same size

Notes

Click the 1px button to see that changing to a positive value for the WidthRequest works.

Basic Information

  • Version with issue: 4.0.0.425677
  • Last known good version: unknown
  • IDE: Visual Studio 2019 and Visual Studio for Mac
  • Platform Target Frameworks:
    • Android: 9.0
    • UWP: 17763

Reproduction Link

TestGridWidth.zip

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