Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 537614

Summary: [Win32][CustomHiDPI] Gap between Checkbox/Radio and Text not getting scaled
Product: [Eclipse Project] Platform Reporter: Niraj Modi <niraj.modi>
Component: SWTAssignee: Niraj Modi <niraj.modi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, lshanmug, sravankumarl
Version: 4.9   
Target Milestone: 4.9 M3   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/127091
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a5f019a9f1f2157503c318b27d0b306a05339a40
Whiteboard:
Bug Depends on: 537273    
Bug Blocks: 534820, 534932    

Description Niraj Modi CLA 2018-08-02 09:59:13 EDT
Issue originally reported at https://bugs.eclipse.org/bugs/show_bug.cgi?id=537273#c5

This is custom HiDPI scenario, where in swt.autoScale is set to "false" as in below test snippet to reproduce the problem, see attachment 275116 [details]
Comment 1 Niraj Modi CLA 2018-08-06 07:19:58 EDT
Same problem can be seen with Radio buttons as well.

Root cause of this issue:
Monitor#getZoom() method returns a calculated zoom value based on the swt.autoScale property. Returning the true monitor zoom as fetched from native fixes the problem. Will share a gerrit shortly.
Comment 2 Eclipse Genie CLA 2018-08-06 07:46:19 EDT
New Gerrit change created: https://git.eclipse.org/r/127091
Comment 4 Niraj Modi CLA 2018-08-16 07:55:27 EDT
Resolving.
Comment 5 Niraj Modi CLA 2018-08-21 05:56:23 EDT
Verified fix on Win10 using Build id: I20180820-2000