Windows on Wide screen have height higher than normal and resets position on restore

Today, after the release, a user reported this

Time 01:00 . the window start resizing in width. And again larger at the end of the video.
The game window is on a 4K Wide TV Monitor

How is possible that the window start enlarging in width with this code?

var contentHeight = $('main').outerHeight() + 20;
var windowHeight = window.innerHeight;

if (contentHeight != windowHeight) {
  overwolf.windows.getCurrentWindow(currentWindow => {
    overwolf.windows.changeSize({ window_id: currentWindow.window.id, width: currentWindow.window.width, height: contentHeight, auto_dpi_resize: false }, () => { });
  });
}