Skip to content

Commit

Permalink
Merge pull request #2 from Thundernerd/develop
Browse files Browse the repository at this point in the history
Added center resetting
  • Loading branch information
Thundernerd committed Aug 2, 2020
2 parents f17ffd6 + d7134b3 commit 8fbe051
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions Editor/ConstrainedRect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ internal void Reset(Rect parent)
{
this.parent = parent;

centerHorizontally = false;
centerVertically = false;

Top.Reset();
Bottom.Reset();
Left.Reset();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8fbe051

Please sign in to comment.