Bug 511188

Summary: [HiDPI] Some buttons/icons are missing in views toolbars when scale is set to 300% (4k screen)
Product: [Eclipse Project] Platform Reporter: Cedric Dumoulin <cedric.dumoulin>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: jan.public, Lars.Vogel, lshanmug, markus.kell.r, niraj.modi, sravankumarl, trohwer85
Version: 4.6Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=562099
Whiteboard:
Bug Depends on: 510772, 512821    
Bug Blocks:    
Attachments:
Description Flags
scale 200%
none
Eclipse at 300% none

Description Cedric Dumoulin CLA 2017-01-27 07:59:49 EST
When the screen scale is set at 300% in Windows with 4K screen, some buttons are missing in the main toolbar and in views' toolbars.

I joined two snapshots : 
 - one at 200%
 - one at 300% : you can see that some buttons are missing in all toolbars
 
 The bug happen in neon and oxygen.
Comment 1 Cedric Dumoulin CLA 2017-01-27 08:04:55 EST
Created attachment 266489 [details]
scale 200%

All buttons in main toolbar and views toolbar are presents
Comment 2 Cedric Dumoulin CLA 2017-01-27 08:07:41 EST
Created attachment 266490 [details]
Eclipse at 300%

Scale is set at 300% (default value on my computer)

Buttons are missing on main toolbar and in views toolbar.
Comment 3 Markus Keller CLA 2017-02-01 15:18:58 EST
Moving this bug to SWT. Platform UI should not have to care about HiDPI at this level.

I fixed bug 510772 on a Linux machine and then filed a very similar bug 510974 for SWT/GTK. I can reproduce the missing toolbar buttons in the IDE on Windows 7 at 300%, but AFAICS, the ControlExample looked OK on Windows.

However, I can't really help investigating here, since my biggest monitor has 1920x1200 pixels, and Windows 7 is not capable of using separate resolutions per monitor.
Comment 4 Markus Keller CLA 2017-02-09 04:46:47 EST
(Niraj Modi said in bug 510772 comment #3)
> Workaround:
> You can explicitly specify the zoom level(limit it to 200%) by adding below
> VM argument in eclipse.ini or on the command line after -vmargs:
> -Dswt.autoScale=200
Comment 5 Niraj Modi CLA 2018-01-31 06:06:19 EST
With fix for bug 512821(which caps the zoom level to 200% by default), this problem is not seen anymore.
Comment 6 Niraj Modi CLA 2018-01-31 06:47:12 EST
(In reply to Markus Keller from comment #3)
> Moving this bug to SWT. Platform UI should not have to care about HiDPI at
> this level.
> 
> I fixed bug 510772 on a Linux machine and then filed a very similar bug
> 510974 for SWT/GTK. I can reproduce the missing toolbar buttons in the IDE
> on Windows 7 at 300%, but AFAICS, the ControlExample looked OK on Windows.
Since the original problem reported is only seen with Eclipse and not seen with ControlExample, we need an SWT based test snippet to reproduce and investigate this further.
Comment 7 Thomas Rohwer CLA 2020-04-14 16:38:09 EDT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=562126 may be a similar issue, and I provided a detailed analysis (including pure SWT example code) there.