Browse Source

Merge branch 'DrawLineOnCanvas' of https://github.com/jogibear9988/SharpDevelop into DrawLineOnCanvas

pull/650/head
jkuehner 11 years ago
parent
commit
ec909083cb
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/LineExtensionBase.cs

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/LineExtensionBase.cs

@ -73,7 +73,7 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
public LineExtensionBase() public LineExtensionBase()
{ {
_surface = new Canvas(); _surface = new Canvas();
adornerPanel = new AdornerPanel(); adornerPanel = new AdornerPanel(){ MinWidth = 10, MinHeight = 10 };
adornerPanel.Order = AdornerOrder.Foreground; adornerPanel.Order = AdornerOrder.Foreground;
adornerPanel.Children.Add(_surface); adornerPanel.Children.Add(_surface);
Adorners.Add(adornerPanel); Adorners.Add(adornerPanel);
@ -142,7 +142,7 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
} }
AdornerPanel ap = _surface.Parent as AdornerPanel; AdornerPanel ap = _surface.Parent as AdornerPanel;
_surface.Width = ap.Width; _surface.Width = ap.Width;
_surface.Height = ap.Height; _surface.Height = ap.Height;

Loading…
Cancel
Save