Community
Participate
Working Groups
Created attachment 264938 [details] half width Browser Our RCP App is using a browser widget. Running this on a Windows system with high dpi (4k monitor) will produce just half width and height. It seems that the browser widget does not take into account the double density. The same code works fine on Mac with high density and was running correctly with Mars before. Tested with XULRunner 31.0.1 I've tried to set the minimumWidth and minimumHeight on the GridData. This fixes somehow the problem, but gives more problems with resizing and coordinate detection. Any help is appreciated. Browser browser = new Browser(composite, SWT.NONE) GridData gd_browser = new GridData(SWT.LEFT, SWT.TOP, true, true, 1, 1); gd_browser.horizontalAlignment = GridData.FILL; gd_browser.verticalAlignment = GridData.FILL; // Fix a windows 4k problem //gd_browser.minimumWidth = composite.getBounds().width * 2; //gd_browser.minimumHeight = composite.getBounds().height * 2; browser.setLayoutData(gd_browser);
It seems to be specific to XULRunner not seen with other browser like IE. This problem is reproducible on Win7 as well.
Created attachment 265293 [details] Test Snippet Modified Snippet148, to reproduce this problem.
New Gerrit change created: https://git.eclipse.org/r/84873
Gerrit change https://git.eclipse.org/r/84873 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=045029d8ab1f04190fbbb9c34c24256a2733531c
(In reply to Eclipse Genie from comment #3) > New Gerrit change created: https://git.eclipse.org/r/84873 Problem was in Mozilla#onResize() method where in the Point information was not converted to Pixels before passing to the native layer. Fixed the problem with above patch, resolving now.
Verified the fix in IBuild: I20161113-2000
To be back-ported to 4.6.2
(In reply to Niraj Modi from comment #7) > To be back-ported to 4.6.2 Fix back-ported to 4.6.2 to via below Gerrit/Git commits(which missed bugzilla auto-logging): https://git.eclipse.org/r/#/c/84961/ http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?h=R4_6_maintenance&id=fb77215d07a8535413f6739b244a3692300b0921 Resolving now.
New Gerrit change created: https://git.eclipse.org/r/84961
Gerrit change https://git.eclipse.org/r/84961 was merged to [R4_6_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=fb77215d07a8535413f6739b244a3692300b0921
Verified the fix in 4.6.2 MBuild: M20161116-1100 on Win7.