HTML element width and height being subtracted when calling Overwolf functions

Related app/team name: LeagueTracker
When I call this function:

overwolf.windows.getCurrentWindow(function (result) {
overwolf.windows.changePosition(result.window.id, monitorX, monitorY);
overwolf.windows.setTopmost(result.window.id, true, function (callback) {});
that.currWindow.restore();
});

1 pixel gets subtracted from the main HTML element’s width and height.
Can you reproduce it: High probability of happening with the code above. Happened 90% of the time.
Impact for my app: minimal
Workaround: Move that.currWindow.restore() outside of getCurrentWindow()

Hi, and thanks for the feedback.

We will check the issue and we will update you here.

Thanks.

Hi @junioryono,

I’m not sure what you are trying to achieve here.
If you want to change the window position and then restore it - you should not do that inside a getCurrentWindow() call. It would be best if you did that from your background controller. He is the right window that should open and close other windows as he is the “brain.”

I am closing this issue due to a lack of response.
You can always ask to reopen it by mentioning me with a @.

Thanks.