Skip to content

Commit

Permalink
Merge pull request #118 from xieziyu/dev
Browse files Browse the repository at this point in the history
Release v2.1.7
  • Loading branch information
Xie, Ziyu authored Oct 31, 2018
2 parents 675c4d5 + a3db78a commit d190095
Show file tree
Hide file tree
Showing 5 changed files with 1,218 additions and 18 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,15 @@ angular2-draggable has angular directives that make the DOM element draggable an
+ provided since v2.0, requires Angular >= 6

# Latest Update
+ 2018.10.31: 2.1.7
+ **ngResizable**: fix [issue #116](https://github.com/xieziyu/angular2-draggable/issues/116): ngResizable Locks Height When rzHandles Includes Only e, w. (Thanks to [Yamazaki93](https://github.com/Yamazaki93))

+ 2018.10.26: 2.1.6
+ **ngResizable**: fix [issue #115](https://github.com/xieziyu/angular2-draggable/issues/115): rzResizing IE event issue

+ 2018.10.15: 2.1.5
+ **ngDraggable**: fix [issue #114](https://github.com/xieziyu/angular2-draggable/issues/114): EndOffset event not working properly with SnapToGrid

+ 2018.09.17: 2.1.4
+ Fix a build issue.
+ **ngResizable**: fix [issue #100](https://github.com/xieziyu/angular2-draggable/issues/100): Resize bounds on a draggable element inside a containment is off

+ 2018.08.20: 2.1.2
+ **ngDraggable**: fix [issue #97](https://github.com/xieziyu/angular2-draggable/issues/97): Item is produced with div partially out of bounds.

+ 2018.08.14: 2.1.1
+ **ngResizable**: Provide `[rzGrid]`. Snaps the resizing element to a grid.
+ **ngResizable**: Provide `[rzMinWidth]`, `[rzMaxWidth]`, `[rzMinHeight]`, `[rzMaxHeight]`. The minimum/maximum width/height the resizable should be allowed to resize to.
+ Bugfix: resizing from w, nw or n with a min/max size moves the window if it goes below/above the min/max size. [#94](https://github.com/xieziyu/angular2-draggable/issues/94)

+ 2018.08.08: 2.0.1
+ Bugfix: click events are blocked. [#87](https://github.com/xieziyu/angular2-draggable/issues/87), [#84](https://github.com/xieziyu/angular2-draggable/issues/84)

+ 2018.08.03: 2.0.0
+ Fix [issue #84](https://github.com/xieziyu/angular2-draggable/issues/84): iFrames, and context unrelated elements block all events, and are unusable

Expand Down
2 changes: 1 addition & 1 deletion projects/angular2-draggable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular2-draggable",
"version": "2.1.6",
"version": "2.1.7",
"author": "Xie, Ziyu",
"license": "MIT",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,12 @@ export class AngularResizableDirective implements OnInit, OnChanges, OnDestroy,

private doResize() {
const container = this.el.nativeElement;
this.renderer.setStyle(container, 'height', this._currSize.height + 'px');
this.renderer.setStyle(container, 'width', this._currSize.width + 'px');
if (this._direction.n || this._direction.s || this._aspectRatio) {
this.renderer.setStyle(container, 'height', this._currSize.height + 'px');
}
if (this._direction.w || this._direction.e || this._aspectRatio) {
this.renderer.setStyle(container, 'width', this._currSize.width + 'px');
}
this.renderer.setStyle(container, 'left', this._currPos.x + 'px');
this.renderer.setStyle(container, 'top', this._currPos.y + 'px');
}
Expand Down
7 changes: 7 additions & 0 deletions src/assets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.1.7 (2018-10-31)

#### Bugfix
+ **ngResizable**: ngResizable Locks Height When rzHandles Includes Only e, w. [#116](https://github.com/xieziyu/angular2-draggable/issues/116) (Thanks to [Yamazaki93](https://github.com/Yamazaki93))

---

## 2.1.6 (2018-10-26)

#### Bugfix
Expand Down
Loading

0 comments on commit d190095

Please sign in to comment.