Comparing version 5.1.1 to 5.1.2
@@ -99,2 +99,12 @@ 'use strict'; | ||
value: function componentDidMount() { | ||
this.setParentPosition(); | ||
} | ||
}, { | ||
key: 'componentWillUpdate', | ||
value: function componentWillUpdate() { | ||
this.setParentPosition(); | ||
} | ||
}, { | ||
key: 'setParentPosition', | ||
value: function setParentPosition() { | ||
var parent = this.wrapper.parentNode; | ||
@@ -101,0 +111,0 @@ if (!parent || typeof window === 'undefined') return; |
{ | ||
"name": "react-rnd", | ||
"license": "MIT", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -422,2 +422,11 @@ <p align="center"><img src ="https://github.com/bokuweb/react-rnd/blob/master/logo.png?raw=true" /></p> | ||
#### v5.1.2 | ||
- Add position `relative` when component will update. | ||
#### v5.1.1 | ||
- Add `top: 0`, `left: 0`. | ||
- Add position `relative` when parent position equals `static`. | ||
#### v5.1.0 | ||
@@ -424,0 +433,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97284
1081
561