aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/mixins/resize-mixin.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/mixins/resize-mixin.js')
-rw-r--r--server/sonar-web/src/main/js/components/mixins/resize-mixin.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/mixins/resize-mixin.js b/server/sonar-web/src/main/js/components/mixins/resize-mixin.js
index 0956957f9f1..ff0ce1f2204 100644
--- a/server/sonar-web/src/main/js/components/mixins/resize-mixin.js
+++ b/server/sonar-web/src/main/js/components/mixins/resize-mixin.js
@@ -34,9 +34,9 @@ export const ResizeMixin = {
},
handleResize () {
- let boundingClientRect = ReactDOM.findDOMNode(this).parentNode.getBoundingClientRect();
- let newWidth = this.props.width || boundingClientRect.width;
- let newHeight = this.props.height || boundingClientRect.height;
+ const boundingClientRect = ReactDOM.findDOMNode(this).parentNode.getBoundingClientRect();
+ const newWidth = this.props.width || boundingClientRect.width;
+ const newHeight = this.props.height || boundingClientRect.height;
this.setState({ width: newWidth, height: newHeight });
},