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!
Tagged:
0
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.png0 -
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.png0 -
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.png0 -
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 = 12640
-
You are correct. It is async. There is a window.onresize for this.0
-
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...0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛