Skip to content

Commit

Permalink
fixed an issue with uwp clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Feb 12, 2017
1 parent 471ccef commit 80bf38b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UwpView/Charts/Base/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ private void OnLoaded(object sender, RoutedEventArgs args)
private void OnSizeChanged(object sender, SizeChangedEventArgs args)
{
Model.ControlSize = new CoreSize(ActualWidth, ActualHeight);
Canvas.Clip = new RectangleGeometry(new Rect(new Point(0, 0), new Size(ActualWidth, ActualHeight)));
Canvas.Clip = new RectangleGeometry
{
Rect = new Rect(new Point(0, 0), new Size(ActualWidth, ActualHeight))
};
Model.Updater.Run();
}

Expand Down

0 comments on commit 80bf38b

Please sign in to comment.