Skip to content

Commit d190095

Browse files
author
Xie, Ziyu
authored
Merge pull request #118 from xieziyu/dev
Release v2.1.7
2 parents 675c4d5 + a3db78a commit d190095

File tree

5 files changed

+1218
-18
lines changed

5 files changed

+1218
-18
lines changed

README.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,15 @@ angular2-draggable has angular directives that make the DOM element draggable an
2727
+ provided since v2.0, requires Angular >= 6
2828

2929
# Latest Update
30+
+ 2018.10.31: 2.1.7
31+
+ **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))
3032

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

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

37-
+ 2018.09.17: 2.1.4
38-
+ Fix a build issue.
39-
+ **ngResizable**: fix [issue #100](https://github.com/xieziyu/angular2-draggable/issues/100): Resize bounds on a draggable element inside a containment is off
40-
41-
+ 2018.08.20: 2.1.2
42-
+ **ngDraggable**: fix [issue #97](https://github.com/xieziyu/angular2-draggable/issues/97): Item is produced with div partially out of bounds.
43-
44-
+ 2018.08.14: 2.1.1
45-
+ **ngResizable**: Provide `[rzGrid]`. Snaps the resizing element to a grid.
46-
+ **ngResizable**: Provide `[rzMinWidth]`, `[rzMaxWidth]`, `[rzMinHeight]`, `[rzMaxHeight]`. The minimum/maximum width/height the resizable should be allowed to resize to.
47-
+ 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)
48-
49-
+ 2018.08.08: 2.0.1
50-
+ Bugfix: click events are blocked. [#87](https://github.com/xieziyu/angular2-draggable/issues/87), [#84](https://github.com/xieziyu/angular2-draggable/issues/84)
51-
5239
+ 2018.08.03: 2.0.0
5340
+ Fix [issue #84](https://github.com/xieziyu/angular2-draggable/issues/84): iFrames, and context unrelated elements block all events, and are unusable
5441

projects/angular2-draggable/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-draggable",
3-
"version": "2.1.6",
3+
"version": "2.1.7",
44
"author": "Xie, Ziyu",
55
"license": "MIT",
66
"keywords": [

projects/angular2-draggable/src/lib/angular-resizable.directive.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,12 @@ export class AngularResizableDirective implements OnInit, OnChanges, OnDestroy,
405405

406406
private doResize() {
407407
const container = this.el.nativeElement;
408-
this.renderer.setStyle(container, 'height', this._currSize.height + 'px');
409-
this.renderer.setStyle(container, 'width', this._currSize.width + 'px');
408+
if (this._direction.n || this._direction.s || this._aspectRatio) {
409+
this.renderer.setStyle(container, 'height', this._currSize.height + 'px');
410+
}
411+
if (this._direction.w || this._direction.e || this._aspectRatio) {
412+
this.renderer.setStyle(container, 'width', this._currSize.width + 'px');
413+
}
410414
this.renderer.setStyle(container, 'left', this._currPos.x + 'px');
411415
this.renderer.setStyle(container, 'top', this._currPos.y + 'px');
412416
}

src/assets/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.1.7 (2018-10-31)
2+
3+
#### Bugfix
4+
+ **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))
5+
6+
---
7+
18
## 2.1.6 (2018-10-26)
29

310
#### Bugfix

0 commit comments

Comments
 (0)