xamarin/Xamarin.Forms

[Bug] Image on Button or ImageButton distorts when swapped

开放

#6,937 创建于 2019年7月19日

 (2 条评论) (3 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/imagebuttona/layoute/3 :clock3:help wantedp/Androidt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 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

贡献者指南