Skip to content

Commit

Permalink
Fixed a bug with the fixed center point function
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Aug 25, 2017
1 parent 2c121d3 commit e906dca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UICompositionAnimations/CompositionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private static void SetFixedCenterPoint([NotNull] this FrameworkElement element,
{
if (double.IsNaN(element.Width) || double.IsNaN(element.Height))
throw new InvalidOperationException("The target element must have a fixed size");
visual.CenterPoint = new Vector3((float)element.Width, (float)element.Height, 0);
visual.CenterPoint = new Vector3((float)element.Width / 2, (float)element.Height / 2, 0);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion UICompositionAnimations/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.11.0.0")]
[assembly: AssemblyVersion("2.11.1.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)]
2 changes: 1 addition & 1 deletion UICompositionAnimations/UICompositionAnimations.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Sergio0694.UWP.UICompositionAnimations</id>
<version>2.11.0.0</version>
<version>2.11.1.0</version>
<title>UICompositionAnimations</title>
<description>A wrapper UWP PCL to work with Windows.UI.Composition and XAML animations, and Win2D effects</description>
<authors>Sergio Pedri</authors>
Expand Down

0 comments on commit e906dca

Please sign in to comment.