diff --git a/src/ui/components/Button.tsx b/src/ui/components/Button.tsx index 0d405ba2f..cdeec7033 100644 --- a/src/ui/components/Button.tsx +++ b/src/ui/components/Button.tsx @@ -285,8 +285,8 @@ class Button extends React.Component { const node = findDOMNode(current); if (node instanceof Element) { const {left, bottom} = node.getBoundingClientRect(); - position.x = left; - position.y = bottom + 6; + position.x = Math.floor(left); + position.y = Math.floor(bottom) + 6; } } menu.popup({