Skip to content

Commit

Permalink
fix twitch (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenransijn authored Jun 15, 2018
1 parent 76ae9f0 commit 6afba0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/positioner/src/getPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ import Position from './Position'
* @return {Object} Rect { width, height, left, top, right, bottom }
*/
const makeRect = ({ width, height }, { left, top }) => {
const ceiledLeft = Math.ceil(left)
const ceiledTop = Math.ceil(top)
return {
width,
height,
left,
top,
right: left + width,
bottom: top + height
left: ceiledLeft,
top: ceiledTop,
right: ceiledLeft + width,
bottom: ceiledTop + height
}
}

Expand Down

0 comments on commit 6afba0e

Please sign in to comment.