Skip to content

Commit

Permalink
Release v2.1.6
Browse files Browse the repository at this point in the history
Bugfix: rzResizing IE event issue
  • Loading branch information
Xie, Ziyu committed Oct 26, 2018
1 parent e189d26 commit 675c4d5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.5",
"version": "2.1.6",
"author": "Xie, Ziyu",
"license": "MIT",
"keywords": [
Expand Down
6 changes: 4 additions & 2 deletions projects/angular2-draggable/src/lib/models/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
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.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
Expand Down
1 change: 1 addition & 0 deletions src/scss/_resizable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
background-color: $white;
border: solid 1px $gray-400;
padding: 0.5em;
box-sizing: content-box;
}

.widget-header {
Expand Down

0 comments on commit 675c4d5

Please sign in to comment.