eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

Selection does not consider line-spacing

Open albertmink opened this issue 1 year ago • 3 comments

Let's make sure issue is not already fixed in latest builds first.

Steps to reproduce

From a fresh installation and clean workspace:

  • Set line spacing > 0 image

I tried

  • *select a character or a word *

I expected: that selection marker extend over the line-spacing

But got: The selected character/word is displayed as if line-spacing were 0 select-with-line-spacing-40

Here is some relevant log output

From <workspace>/.metadata/.log

<relevant log output>

Tested under this environment:

  • OS & version: ...
  • Eclipse IDE/Platform version (as shown in Help > About): ...
  • ...Anything else that can be useful...

Community

  • [x] I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

albertmink avatar Sep 20 '24 12:09 albertmink

Did you read that? image Do you plan to contribute a PR that does the job?

jukzi avatar Sep 20 '24 12:09 jukzi

Did you read that? image Do you plan to contribute a PR that does the job?

I don't think that his sentence relates to this issue. The extra linespacing setting has some issues - so I would say it's simply a bug. Pls. have a look at https://github.com/eclipse-platform/eclipse.platform.swt/pull/1329. There we did a fix for the selection in such cases. How is your case different?

BeckerWdf avatar Sep 20 '24 12:09 BeckerWdf

@BeckerWdf let's consider three cases: ( I just wanted to play with this feature 🥲 )

(1) see initial post. select-with-line-spacing-40

(2) selecting multi line (partial) Screenshot 2024-09-20 at 15 49 32 (3) selecting multi line (entire) Screenshot 2024-09-20 at 15 50 03

Let's say only (3) looks good.

albertmink avatar Sep 20 '24 13:09 albertmink