Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC Data image scaling Bugfix #1301

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

amartya4256
Copy link
Contributor

This PR fixes the image scaling bug in GC data. The image was scaled with the native zoom of the GC Data instead of the zoom. This leads to the the problem of no image drawn but just a white background. The image is only visible when the zoom and nativeZoom are the same. This behavior can be seen if the IDE is started at i.e. 125% zoom level on the default monitor. Hence, in this case the zoom is set to 100 and nativeZoom is 125. And due to wrong scaling, the lineNumberRulerColumn and minimize and maximize button images are not visible but rather just a white background is visible.

image

This fix provides the right scaling to the image in the GC Data using the zoom but not the nativeZoom level as per the standard.

Contributes to #62 and #127

This commit fixes the image scaling bug in GC data. The image was scaled
with the native zoom of the GC Data instead of the zoom. This leads to
the the problem of no image drawn but just a white background. The image
is only visible when the zoom and nativeZoom are the same. This behavior
can be seen if the IDE is started at i.e. 125% zoom level on the default
monitor. Hence, in this case the zoom is set to 100 and nativeZoom is
125. And due to wrong scaling, the lineNumberRulerColumn and minimize
and maximize button images are not visible but rather just a white
background is visible. This fix provides the right scaling to the
image in the GC Data using the zoom but not the nativeZoom level
as per the standard.

Contributes to eclipse-platform#62 and eclipse-platform#127
Copy link
Contributor

Test Results

   470 files  ±0     470 suites  ±0   7m 54s ⏱️ - 1m 15s
 4 135 tests ±0   4 127 ✅ ±0   8 💤 ±0  0 ❌ ±0 
16 336 runs  ±0  16 244 ✅ ±0  92 💤 ±0  0 ❌ ±0 

Results for commit 9ce4362. ± Comparison against base commit f40502d.

@deepika-u
Copy link
Contributor

Inspite of applying the pr, i am still not able to see the line numbers and maximize/minimize buttons.

Also there is a white background covering the widgets at many places. To make it more visible i have changed to dark theme to showcase the same issue as below
I am not able to see

  • line numbers though enabled,
  • '+' sign next to imports,
  • similarly maximize/minimize and so on....

image

@fedejeanne
Copy link
Contributor

The fix works for me, merging.

image

@deepika-u your WS seems quite "full". Which application did you start to test it? Which WS did you use? I started Runtime Workspace (app) with a fresh workspace and added a project and a java class to it.

@fedejeanne fedejeanne merged commit bd223bb into eclipse-platform:master Jun 26, 2024
14 checks passed
@deepika-u
Copy link
Contributor

Sorry it works, i applied pr but missed to take child eclipse to test it. That was my miss. Thanks fede.

@fedejeanne
Copy link
Contributor

Sorry it works, i applied pr but missed to take child eclipse to test it. That was my miss. Thanks fede.

... been there, done that (eclipse-platform/eclipse.platform.ui#1916 (comment)) 😅

My pleasure! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants