xamarin/Xamarin.Forms

[Bug, Core] incorrect reset CornerRadius of Button

开放

#6,731 创建于 2019年7月1日

 (0 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
4.0.0e/3 :clock3:help wantedi/regressioninactivet/bug :bug:up-for-grabs

仓库指标

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

描述

Description

When resetting of CornerRadius first time it sets radius value 5. Second reset sets radius to -1.

Steps to Reproduce

  1. ControlGallery
  2. Dynamic ViewGallery
  3. Control: Button
  4. Set CornerRadius
  5. Reset CornerRadius
  6. Again reset CornerRadius

Expected Behavior

The reset value should not depend on its current value.

Actual Behavior

First reset of CornerRadius sets corner radius to 5. Second reset of CornerRadius removes radius.

贡献者指南