xamarin/Xamarin.Forms

[Bug] [iOS] image doesn't expand if LayoutOptions are defined

Offen

#8.246 geöffnet am 25.10.2019

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
e/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

in iOS, images are not expanding when LayoutOptions are defined even though the options are declared with "andExpand"

Steps to Reproduce

  1. Run the attached program in Android. Open the Master Menu. Note that the image expands to take most of the view area (Aspect Fit) while anchored to the bottom of the view
  2. Run the program in iOS and open the menu. Note that there is a large white space on 3 sides of the image, it has not expanded, but it is anchored to the bottom of the view
  3. Open MenuPage.cs and comment lines 21 & 22 (the setting of the Vertical and Horizontal Options in the Image object). Run in iOS again. This time the image did expand, although it is centered vertically.

Expected Behavior

The image should expand to fill the parent area.

Actual Behavior

The images does not expand

Basic Information

  • Version with issue: 4.3.0.908675

Screenshots

image

image

image

Reproduction Link

Contributor Guide