diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2013-10-22 17:05:33 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2013-10-22 17:05:33 +0400 |
commit | 0a661a0d85c35b28e3c8440c12a8dd16aa79d3ba (patch) | |
tree | 6e09d0baa67a06d5ed74574dd01d4c3ccbf17187 /Xwt.WPF | |
parent | f6c3315543773edd0a5bb8e59b1f172bc4c9db15 (diff) |
[WPF] Fix sizing issue
It is not necessary to explicitly set the size of a widget when the
a size request is set. The Widget class takes care of it.
Diffstat (limited to 'Xwt.WPF')
-rw-r--r-- | Xwt.WPF/Xwt.WPFBackend/WidgetBackend.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Xwt.WPF/Xwt.WPFBackend/WidgetBackend.cs b/Xwt.WPF/Xwt.WPFBackend/WidgetBackend.cs index 5605665b..49e2c805 100644 --- a/Xwt.WPF/Xwt.WPFBackend/WidgetBackend.cs +++ b/Xwt.WPF/Xwt.WPFBackend/WidgetBackend.cs @@ -391,15 +391,7 @@ namespace Xwt.WPFBackend public void SetSizeRequest (double width, double height)
{
- if (width == -1)
- Widget.ClearValue (FrameworkElement.WidthProperty);
- else
- Widget.Width = width;
-
- if (height == -1)
- Widget.ClearValue (FrameworkElement.HeightProperty);
- else
- Widget.Height = height;
+ // Nothing needs to be done here
}
public void SetCursor (CursorType cursor)
|