overwolf.windows.bringToFront and overwolf.windows.restore doesn't resize content properly

Related app/team name (not a must if you want to keep it private): Insights Capture

Issue Description:
There are two issues here:

When a maximized desktop window is hidden, restoring the window while a game is open causes the contents of the window to not be resized correctly. Part of the content gets cut off by the boundary. See screenshot below.

This happens when calling overwolf.windows.restore('desktop', console.log), overwolf.windows.bringToFront('desktop', true, console.log), or overwolf.windows.bringToFront('desktop', console.log)

  1. overwolf.windows.bringToFront('desktop', true, console.log) doesn’t restore the window in a maximized state.

Setting grabFocus to true is supposed to keep maximized state (bringToFront doesn't maintain window maximized state if grabFocus is false).

The same bug was fixed in v.195 according to [Discuss] overwolf.windows.bringToFront causes window to restore - #3 by EladBahar

Screenshot:


Window cut off


Normal window

Can you reproduce it (exact steps to reproduce):

  • Open app. I used a lightly modified version of the sample app I had, so it should work on the default sample app.
  • Maximize desktop window
  • Open a game. I tried Osu! and CS:GO
  • Hide the desktop window
  • Call either overwolf.windows.restore('desktop', console.log), overwolf.windows.bringToFront('desktop', true, console.log), or overwolf.windows.bringToFront('desktop', console.log) through the chrome console.
  • You end up in a state shown in the first screenshot with the content being cut off. The window should also be maxmized if grabFocus was set to true
  • Doing any sort of resizing will fix it

Do you currently have a workaround? No

Hi!
Sorry for the late response, we’re looking into this issue, and will keep you updated!

Hi!
We’re unable to reproduce both of these issues, using different setups, windows 10 vs 11, etc.
Do you have a method of consistently reproducing them on your side? And if so, can you send us your overwolf logs from when you do?

HI Oded,

Yes, this is a consistent thing. I have reproduced the first bug that is causing the app to be the wrong zoom and attached the logs. Around 9:30am - 9:37am Oct 26, 2022.

I am using Windows 10. I have my laptop with a secondary monitor connected. Both are at 1080p resolution, but my laptop has 125% scaling in the Windows display setting.

I had Osu! running on my laptop display while the maximized app was running on my secondary monitor. I entered the hide and restore command through the Chrome console to hide and restore the app desktop window.

Here is the exact sample app I used: GitHub - fgfl/sample-app: The Official Overwolf Sample App

OverwolfLogs_2022-10-26_09-35-12.zip (1.6 MB)

1 Like

Hi!
If possible, are you okay with scheduling with support to go over this remotely (with microsoft teams) sometime in the near future, so we can try to see what is causing this (as we’re unable to re-produce this on our end even with the exact setup)?

Per internal messaging, issue fixed as of version 0.215.0.5.

1 Like