Skip to content

Commit 675c4d5

Browse files
author
Xie, Ziyu
committed
Release v2.1.6
Bugfix: rzResizing IE event issue
1 parent e189d26 commit 675c4d5

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ angular2-draggable has angular directives that make the DOM element draggable an
2828

2929
# Latest Update
3030

31+
+ 2018.10.26: 2.1.6
32+
+ **ngResizable**: fix [issue #115](https://github.com/xieziyu/angular2-draggable/issues/115): rzResizing IE event issue
33+
3134
+ 2018.10.15: 2.1.5
3235
+ **ngDraggable**: fix [issue #114](https://github.com/xieziyu/angular2-draggable/issues/114): EndOffset event not working properly with SnapToGrid
3336

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.5",
3+
"version": "2.1.6",
44
"author": "Xie, Ziyu",
55
"license": "MIT",
66
"keywords": [

projects/angular2-draggable/src/lib/models/position.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ export class Position implements IPosition {
2424
if (window) {
2525
const computed = window.getComputedStyle(el);
2626
if (computed) {
27-
pos.x = parseInt(computed.getPropertyValue('left'), 10);
28-
pos.y = parseInt(computed.getPropertyValue('top'), 10);
27+
let x = parseInt(computed.getPropertyValue('left'), 10);
28+
let y = parseInt(computed.getPropertyValue('top'), 10);
29+
pos.x = isNaN(x) ? 0 : x;
30+
pos.y = isNaN(y) ? 0 : y;
2931
}
3032
return pos;
3133
} else {

src/assets/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.1.6 (2018-10-26)
2+
3+
#### Bugfix
4+
+ **ngResizable**: rzResizing IE event issue. [#115](https://github.com/xieziyu/angular2-draggable/issues/115)
5+
6+
---
7+
18
## 2.1.5 (2018-10-15)
29

310
#### Bugfix

src/scss/_resizable.scss

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
background-color: $white;
55
border: solid 1px $gray-400;
66
padding: 0.5em;
7+
box-sizing: content-box;
78
}
89

910
.widget-header {

0 commit comments

Comments
 (0)