diff --git a/js/components/WindowManager.js b/js/components/WindowManager.js index 3f6b8b90..4ea4fa40 100644 --- a/js/components/WindowManager.js +++ b/js/components/WindowManager.js @@ -69,8 +69,8 @@ class WindowManager extends React.Component { const boxWidth = bounding.right - bounding.left; const move = { - x: offsetLeft + (width - boxWidth) / 2, - y: offsetTop + (height - boxHeight) / 2 + x: Math.ceil(offsetLeft + (width - boxWidth) / 2), + y: Math.ceil(offsetTop + (height - boxHeight) / 2) }; const newPositions = this.props.windowsInfo.reduce(