Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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