Browse Source

Corrects SizeToContent for both windows and control wrppers

pull/467/head
Darnell Williams 11 years ago
parent
commit
9935ffe9c4
  1. 5
      src/Perspex.Application/Designer/DesignerAssist.cs

5
src/Perspex.Application/Designer/DesignerAssist.cs

@ -76,8 +76,11 @@ namespace Perspex.DesignerSupport
if (window == null)
{
window = new Window() {Content = original, SizeToContent = SizeToContent.WidthAndHeight};
window = new Window() {Content = original};
}
if (!window.IsSet(Window.SizeToContentProperty))
window.SizeToContent = SizeToContent.WidthAndHeight;
}
s_currentWindow?.Close();

Loading…
Cancel
Save