Community
Participate
Working Groups
I use Eclipse on one computer plugged into two monitors - one at work (full hd), one at home (4k). The font choosen is standard Consolas. Eclipse is scaling well. The only problem is this: - on 4k monitor in some files (not all) some of the tabs seems collapsed into zero width character - it happens in default zoom. If I zoom in (ctrl + +) once, the problems persist. If I zoom in twice, problems disappear. If I zoom out (ctrl + -) the problems also disappear. - when moving cursor using arrow key over the collapsed tab - it behaves like the tab is there (cursor stay at the position for two key strokes) - the same files on the full hd monitor cause no trouble - visual tab width is set to 3 in my preferences -- Screenshots of behavior in certain zoom levels https://1drv.ms/f/s!AqMNcE_I2xjAhY4y9mriTGP3khHdsg
Adding my exact configuration -- Configuration Details -- Product: Eclipse 4.6.2.20161208-0625 (org.eclipse.epp.package.jee.product)Installed Features: org.eclipse.platform 4.6.2.v20161124-1529
The problem cause is definitely the calculated tab width. I tried to change the visual tab width in preferences from 3 to 4 and it worked well. If there are only tabs at the beginning of the line, everything is alright. Only mix of tabs and spaces causes the problem. I tried different monospace fonts and the problem persisted, so it is not cause. I have these settings for my monitor: - os: windows 10 version 1607 - display resolution: 3840x2160 - the size of text: 175%
Can you please attach some screenshots?
Yes, here are 4 different levels of zoom: https://1drv.ms/f/s!AqMNcE_I2xjAhY4y9mriTGP3khHdsg
(In reply to Jiri Fornous from comment #4) > Yes, here are 4 different levels of zoom: > > > https://1drv.ms/f/s!AqMNcE_I2xjAhY4y9mriTGP3khHdsg Please attach the files here, so that this bug is self-contained. Do you also see the problem in the Eclipse Text or Java editor?
Created attachment 267474 [details] Default zoom - indent problems
Created attachment 267475 [details] One plus zoom - problems
Created attachment 267476 [details] Two plus zoom - no problem
Created attachment 267477 [details] One minus zoom - no problem
I have just uploaded the files as attachments.
Do you also see the problem in the Eclipse Text or Java editor?
The same for the build-in plain text editor.
It works this way (suppose I have three letters tab width): - start at the line beginning - write one space and tab -> everything ok - start at the line beginning - write two spaces and tab -> everything ok - start at the line beginning - write three spaces and tab -> wrong (collapsed tab) It happens when number of spaces is divisible by the tab width in settings - but only for odd numbers (1,3,5,7,...). For even numbers works well. I think there is incorrect calculation of the real visual tab width depending on the number of typed letters (it is the same with other characters than spaces). Expected behavior: - you type 1 character + tab and caret is on third column - you type 2 characters + tab and caret is on third column - you type 3 characters + tab and caret is on sixth column (three character width tab) Observed behavior: - you type 3 characters + tab and caret is on third position
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.