xamarin/Xamarin.Forms

[iOS] ToolbarItems with Icons won't align properly

Aperta

#3513 aperta il 8 ago 2018

 (17 commenti) (8 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/4 :clock4:help wantedm/high impact :black_large_square:p/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

While working fine on both Android and UWP, iOS is unable to render ToolbarItems with icons properly.

Steps to Reproduce

  1. Fill a ContentPage's toolbar with 1 or more ToolbarItems, each with a .png Icon
  2. Navigate to the ContentPage wrapped in a NavigationPage

Expected Behavior

ToolbarItems with their respective Icons are aligned to the right like on Android.

Actual Behavior

ToolbarItems scramble around the Navigation Bar, they never appear aligned to the right properly. They are still usable and can trigger Commands.

Basic Information

  • Version with issue: 3.1.0.697729
  • Last known good version: -
  • IDE: Visual Studio Enterprise 15.7.4
  • Platform Target Frameworks:
    • iOS: 11.4 & 11.4.1
  • Nuget Packages: Xamarin.Forms 3.1.0.697729
  • Affected Devices: reproduced on iPhone 6s, iPhone 7, iPhone X

Screenshots

image-1

Reproduction Link

ToolbarBug.zip

Guida contributor