xamarin/Xamarin.Forms

[Bug] Top and Bottom padding on Material button can't be set to less than 8dp

オープン

#7,860 opened on 2019/10/07

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

Repository metrics

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

説明

Description

        <StackLayout Visual="Material">
            <Button  Padding="0" Text="no padding" ></Button>
            <Button  Text="default"></Button>
        </StackLayout>

Both of the controls above render with the same padding applied to the control so you can't get a 36 dp height on a Material Button (which is allowable as part of the Material spec)

Expected Behavior

When you set padding to zero the padding on all side of the control should be zero

Actual Behavior

It's not zero

Basic Information

  • Version with issue: master (I also tested with Android X)

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