diff --git a/CHANGELOG.md b/CHANGELOG.md index e37a612..227ea74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [3.0.1] - 2020-08-02 +### Fixed +- Resetting of horizontal and vertical centering + ## [3.0.0] - 2020-08-02 ### Added - Pooling of Constrained Rect diff --git a/Editor/ConstrainedRect.cs b/Editor/ConstrainedRect.cs index d5c04c3..f691de7 100644 --- a/Editor/ConstrainedRect.cs +++ b/Editor/ConstrainedRect.cs @@ -34,6 +34,9 @@ internal void Reset(Rect parent) { this.parent = parent; + centerHorizontally = false; + centerVertically = false; + Top.Reset(); Bottom.Reset(); Left.Reset(); diff --git a/package.json b/package.json index 1fd475a..30406b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "net.tnrd.constrainedrect", - "version": "3.0.0", + "version": "3.0.1", "displayName": "Constrained Rect", "description": "A simple helper to constrain a Rect to an EditorWindow or another Rect", "unity": "2019.1",