Skip to content

Commit

Permalink
added rounding when setting resolver positioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkolba committed Apr 27, 2022
1 parent 962412e commit 130fc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/main/src/IntentResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export class IntentResolver {
const wsSize = workspace.window?.getSize();
this.window.setSize(resolverWidth, resolverHeight);
this.window.setPosition(
wsPosition[0] + wsSize[0] / 2 - resolverWidth / 2,
wsPosition[1] + wsSize[1] / 2 - resolverHeight / 2,
Math.round(wsPosition[0] + wsSize[0] / 2 - resolverWidth / 2),
Math.round(wsPosition[1] + wsSize[1] / 2 - resolverHeight / 2),
);
}

Expand Down

0 comments on commit 130fc31

Please sign in to comment.