# Steps to reproduce
1. Create a ContentPage with a control and two ToolbarItems marked as secondary.
2. Load the page. Observe that the leftmost toolbar item becomes offset. Notice also that the rightmost toolbar item disappears (as if by magic!).
See code example below:
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="xamtest.AboutPage" xmlns:vm="clr-namespace:xamtest;">
<ToolbarItem Order="Secondary" Priority="0" Text="Stop"/>
<ToolbarItem Order="Secondary" Priority="1" Text="Start" />
# Expected behavior
1. The display of the toolbar items doesn't change after the page loads; all controls are visible and in the right place.
# Actual behavior
1. The display of toolbar items does change after the page loads; some controls are invisible and others are offset.
# Supplemental info (logs, images, videos)
# Test environment (full version information)
iOS 11 simulator, macOS Sierra, Xamarin.Forms 2.4 stable
I believe this might very well be related to 59868 but due to the other aspect of the left item, I'll set this to confirmed for the time being until we can investigate this further.
Some more information on this, since I'm running into this issue as well.
From what I can tell, this is an issue with XF 2.4, but with Xamarin iOS 11 and Xcode 9. I've been using 188.8.131.52-pre6 with no issues. I had some other problems with the last version of my app that I published (before xcode 9 was released), and after fixing those issues, I"m running into the offset secondary toolbaritems while using that same version of XF. I've also tested with 184.108.40.2060, 220.127.116.110 and 18.104.22.1682 and nit hasn't made any difference.
I'm using three secondary ToolbarItems instead of only 2, and only see the problem on device. It looks fine in the simulator. On device I see this: https://imgur.com/a/dWQsR. If I comment out one of the three to only have 2, I see exactly w hat's described in the original bug description.
Visual Studio Community 2017 for Mac
Version 7.1.5 (build 2)
Installation UUID: 9aeeaee4-e204-4c3b-ac1e-e44b2ad7a503
Mono 22.214.171.124 (d15-3/14f2c81) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 502000224
Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Version: 126.96.36.199 (Visual Studio Community)
Android SDK: /Users/Tim/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.0.3 (API level 15)
4.4 (API level 19)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
SDK Tools Version: 25.1.7
SDK Platform Tools Version: 24.0.2
SDK Build Tools Version: 23.0.2
Java SDK: /usr
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Android Designer EPL code available here:
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1
Apple Developer Tools
Xcode 9.0 (13247)
Version: 188.8.131.52 (Visual Studio Community)
Version: 184.108.40.206 (Visual Studio Community)
Build date: 2017-09-15 02:25:56-0400
Release ID: 701050002
Git revision: 7afedcaef8e7542e70e3cf8f9bdb26938b8c0876
Build date: 2017-09-15 08:39:58-04
Xamarin addins: 3262aadf811a18c12eac6742532d052b0139a808
Build lane: monodevelop-lion-d15-3-xcode9
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
Thu Jun 15 17:36:27 PDT 2017