From 130fc3173890e3e94c00e2d5621202c2926c3655 Mon Sep 17 00:00:00 2001 From: Nicholas Kolba Date: Wed, 27 Apr 2022 11:12:59 -0400 Subject: [PATCH] added rounding when setting resolver positioning. --- packages/main/src/IntentResolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/src/IntentResolver.ts b/packages/main/src/IntentResolver.ts index 4fe9b3c7..e74fe129 100644 --- a/packages/main/src/IntentResolver.ts +++ b/packages/main/src/IntentResolver.ts @@ -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), ); }