From a028420dc42548e3ab928e788cbc9e9112b3a30d Mon Sep 17 00:00:00 2001 From: btzr-io Date: Mon, 24 Sep 2018 17:08:41 -0600 Subject: [PATCH] add comment --- src/renderer/component/common/tooltip.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/component/common/tooltip.jsx b/src/renderer/component/common/tooltip.jsx index 8c88358d7..c54318098 100644 --- a/src/renderer/component/common/tooltip.jsx +++ b/src/renderer/component/common/tooltip.jsx @@ -68,6 +68,7 @@ class ToolTip extends React.PureComponent { const { direction } = this.state; const visibility = this.getVisibility(); + // Invert direction if tooltip is outside viewport bounds if (!visibility[direction]) { this.invertDirection(); }