aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx b/server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx
index 5b06162a1be..5b003bf9508 100644
--- a/server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx
+++ b/server/sonar-web/src/main/js/components/common/ScreenPositionHelper.tsx
@@ -50,7 +50,7 @@ export default class ScreenPositionHelper extends React.PureComponent<Props> {
}
return {
top: window.pageYOffset + containerPos.top,
- left: window.pageXOffset + containerPos.left
+ left: window.pageXOffset + containerPos.left,
};
};
@@ -58,7 +58,8 @@ export default class ScreenPositionHelper extends React.PureComponent<Props> {
return (
<div
className={this.props.className}
- ref={container => (this.container = container as HTMLDivElement)}>
+ ref={(container) => (this.container = container as HTMLDivElement)}
+ >
{this.props.children(this.getPosition())}
</div>
);