diff --git a/README.md b/README.md index aa4636c..90412b6 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ angular2-draggable has angular directives that make the DOM element draggable an # Latest Update ++ 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 diff --git a/projects/angular2-draggable/package.json b/projects/angular2-draggable/package.json index 1fc25c9..c033b47 100644 --- a/projects/angular2-draggable/package.json +++ b/projects/angular2-draggable/package.json @@ -1,6 +1,6 @@ { "name": "angular2-draggable", - "version": "2.1.5", + "version": "2.1.6", "author": "Xie, Ziyu", "license": "MIT", "keywords": [ diff --git a/projects/angular2-draggable/src/lib/models/position.ts b/projects/angular2-draggable/src/lib/models/position.ts index 675d1f7..cded28b 100644 --- a/projects/angular2-draggable/src/lib/models/position.ts +++ b/projects/angular2-draggable/src/lib/models/position.ts @@ -24,8 +24,10 @@ export class Position implements IPosition { if (window) { const computed = window.getComputedStyle(el); if (computed) { - pos.x = parseInt(computed.getPropertyValue('left'), 10); - pos.y = parseInt(computed.getPropertyValue('top'), 10); + let x = parseInt(computed.getPropertyValue('left'), 10); + let y = parseInt(computed.getPropertyValue('top'), 10); + pos.x = isNaN(x) ? 0 : x; + pos.y = isNaN(y) ? 0 : y; } return pos; } else { diff --git a/src/assets/CHANGELOG.md b/src/assets/CHANGELOG.md index 111b874..c24bd4f 100644 --- a/src/assets/CHANGELOG.md +++ b/src/assets/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.1.6 (2018-10-26) + +#### Bugfix ++ **ngResizable**: rzResizing IE event issue. [#115](https://github.com/xieziyu/angular2-draggable/issues/115) + +--- + ## 2.1.5 (2018-10-15) #### Bugfix diff --git a/src/scss/_resizable.scss b/src/scss/_resizable.scss index 9131a4d..28d755f 100644 --- a/src/scss/_resizable.scss +++ b/src/scss/_resizable.scss @@ -4,6 +4,7 @@ background-color: $white; border: solid 1px $gray-400; padding: 0.5em; + box-sizing: content-box; } .widget-header {