Bug 511188 - [HiDPI] Some buttons/icons are missing in views toolbars when scale is set to 300% (4k screen)
Summary: [HiDPI] Some buttons/icons are missing in views toolbars when scale is set to...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on: 510772 512821
Blocks:
  Show dependency tree
 
Reported: 2017-01-27 07:59 EST by Cedric Dumoulin CLA
Modified: 2020-04-16 01:56 EDT (History)
7 users (show)

See Also:


Attachments
scale 200% (98.11 KB, image/png)
2017-01-27 08:04 EST, Cedric Dumoulin CLA
no flags Details
Eclipse at 300% (71.04 KB, image/png)
2017-01-27 08:07 EST, Cedric Dumoulin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.