JET resize problem

Hi all, I have an Eikon app calling JET resize on initial load. It works perfectly on single monitor. However, when my computer is connected to use extended monitor, the width would be greatly increased unexpectedly. For example, if I call JET.resizeTo(1280, 1080, true), it occupies 1280px width in my single monitor. Under extended monitor mode, the actual app width becomes 25XX pixels. It happens on my teammate's laptop (1280x1080) with extended monitor (1280x1080). Any idea? Thanks!

Answers

  • You may need to verify the size of text via **Control Panel\All Control Panel Items\Display**. To get the actual size, the setting should be **Smaller – 100% (default)**. ![alt text][1] [1]:
    https://techoverflow.int.thomsonreuters.com/upfiles/size.png
  • Thanks Jirapongse. Yes, I found that the laptop is set to Medium 125%. When I call JET.resizeTo, line 739 shown below return a large difference between outerWidth and innerWidth which is unexpected. Now I minimized the problem effect by setting "inner" as false. But the width is still enlarged 125% (previously enlarged a lot). It looks like there is no way to detect the display zoom. Do you have any idea? ![alt text][1] [1]:
    https://techoverflow.int.thomsonreuters.com/upfiles/EikonResolution.png
  • After resizing, you can use window.outerWidth to get the actual width of the window. Then, you can recalculate the proper size and then call JET.resizeTo() again. ![alt text][1] [1]:
    https://techoverflow.int.thomsonreuters.com/upfiles/resize.png
  • I tried to retrieve outerWidth immediately after JET.resize, the width is not expected. Looks like the call take time async? > JET.resizeTo(1280,966,false) > window.outerWidth = 1264
  • You are correct. It is async. There is a window.onresize for this.
  • then the solution is not that feasible as I am not sure how much time I have to wait to do the second resize... If I waited too long, users will see the resize in two steps very obviously...