xamarin/Xamarin.Forms

[Bug] Image on Button or ImageButton distorts when swapped

オープン

#6,937 opened on 2019/07/19

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

Repository metrics

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

説明

Description

When swapping out the Source Image on the attached project the image will occasionally distort. If you click it enough times it'll return back to normal.

Steps to Reproduce

  1. Run attached project
  2. click on the heart a few times and you will see sometimes it distorts

In the sample if you delete the Frame above the ImageButton then the distortion no longer occurs

Expected Behavior

The image should always stay the same height/width

Actual Behavior

The image when changing stretches and occasionally doesn't return to normal

Basic Information

  • Version with issue: 4.3
  • Last known good version: I tested as far back as 3.4 and the issue still presented itself there
    • Android: API 23

Screenshots

image

Reproduction Link

ImageSizesWeirdWhenChanged.zip

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