xamarin/Xamarin.Forms

[Bug] iOS Button with FontIconSource: Icon jumps around when changing text

Offen

#9.021 geöffnet am 26.12.2019

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
a/fonticone/4 :clock4:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

When changing the text on a button with a FontImageSource, the icon jumps around. In my project the text is set via DataTriggers.

Steps to Reproduce

  1. Add a button with data triggers to a page, where the data triggers are bound to a viewmodel and change the text according to the bound value
  2. Add an icon to the button via FontImageSource
  3. change the bound value and observe the icon jumping

Expected Behavior

Only the buttons text changes

Actual Behavior

The buttons text changes as expected but the icon "jumps around"

Basic Information

  • Version with issue: 4.4
  • iOS Only

Screenshots

Jumping Glyph

Contributor Guide