Fix skins with region.txt

If the positioning is sub-pixel, the clip-path can get off a bit
This commit is contained in:
Jordan Eldredge 2018-07-26 08:00:45 -07:00
parent 2b81fd1fcb
commit a12836148d

View file

@ -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(