diff options
-rw-r--r-- | main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs | 2 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs index 4a3633ed96..d7e9b437a1 100644 --- a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs +++ b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs @@ -95,7 +95,7 @@ namespace MonoDevelop.DesignerSupport.Toolbox var compactImage = ImageService.GetIcon (Stock.CompactDisplay, Gtk.IconSize.Menu); var addImage = ImageService.GetIcon (Stock.Add, Gtk.IconSize.Menu); - horizontalStackView = NSStackViewExtensions.CreateHorizontalStackView (IconsSpacing); + horizontalStackView = NativeViewHelper.CreateHorizontalStackView (IconsSpacing); AddArrangedSubview (horizontalStackView); horizontalStackView.LeftAnchor.ConstraintEqualToAnchor (LeftAnchor, 0).Active = true; diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs index d8046e2bd9..7f0b47b24e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs @@ -35,14 +35,6 @@ namespace MonoDevelop.Components.Mac const int RenderingPriority = (int)NSLayoutPriority.Required; const int LowPriority = (int)NSLayoutPriority.DefaultLow - 1; - public static NSStackView CreateHorizontalStackView (int spacing = 10) => new NSStackView () { - Orientation = NSUserInterfaceLayoutOrientation.Horizontal, - Alignment = NSLayoutAttribute.CenterY, - Spacing = spacing, - Distribution = NSStackViewDistribution.Fill, - TranslatesAutoresizingMaskIntoConstraints = false - }; - public static void AddArrangedSubview (this NSStackView stackView, NSView view, bool expandHorizontally, bool expandVertically) { stackView.AddArrangedSubview (view); |