diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-10-04 19:48:46 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-10-04 19:48:47 +0300 |
commit | 0d9f0e187dd269a5b5cd72f6b7ac7964005da4cb (patch) | |
tree | 7344f9307bd13c282946ef591b25875b34cbec04 /Xamarin.PropertyEditing.Mac/Controls/Custom | |
parent | 1d41746466f32e44bde09bc575744b9c33f45a57 (diff) |
[mac] Fix duplicate tabs
AddTabViewItem just proxies to Insert, we don't need both or we duplicate.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/Custom')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs index bc5b290..b401833 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnderlinedTabViewController.cs @@ -7,16 +7,9 @@ namespace Xamarin.PropertyEditing.Mac internal class UnderlinedTabViewController<TViewModel> : NotifyingTabViewController<TViewModel> where TViewModel : NotifyingObject - { - public override void AddTabViewItem (NSTabViewItem tabViewItem) - {
- this.tabStack.AddView (GetView (tabViewItem), NSStackViewGravity.Leading);
- base.AddTabViewItem (tabViewItem); - }
-
+ {
public override void InsertTabViewItem (NSTabViewItem tabViewItem, nint index) - { -
+ {
this.tabStack.InsertView (GetView (tabViewItem), (nuint)index, NSStackViewGravity.Leading);
base.InsertTabViewItem (tabViewItem, index); } |