eclipse-platform / eclipse.platform.ui

Eclipse Platform
https://projects.eclipse.org/projects/eclipse.platform
Eclipse Public License 2.0
78 stars 163 forks source link

Selection does not consider line-spacing #2307

Open albertmink opened 4 hours ago

albertmink commented 4 hours ago

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

Steps to reproduce

From a fresh installation and clean workspace:

I tried

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:

Community

jukzi commented 4 hours ago

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

BeckerWdf commented 4 hours ago

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?

albertmink commented 3 hours ago

@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.