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

cursor location in properties window is not OK #685

Open
jderijke opened this issue Sep 2, 2022 · 4 comments
Open

cursor location in properties window is not OK #685

jderijke opened this issue Sep 2, 2022 · 4 comments
Labels

Comments

@jderijke
Copy link

jderijke commented Sep 2, 2022

I just typed a series of characters in the properties window
The cursor is at the end of the line but is shown some characters before it.
Also, when you click somewhere on a line, you are not exactly typing at the location where you clicked, but a little before that location.
If you select the entire line by triple-clicking, the last two characters are not highlighted.
image

I actually solved the problem by setting the font family in the settings from sans-serif to monospace and restarting
and then from monospace back to sans-serif and restarting again.
Which is strange, because the font family does not affect the font in the properties window. I have the impression that on a fresh install the properties window is using a width from the font in the diagram window.
Anyway my problem is solved, but I just wanted to signal this because the problem is annoying an d other users might bump into it.
This is umlet 15 on windows 10 with Java 17 (Java HotSpot(TM) 64-Bit Server VM (build 17.0.4+11-LTS-179, mixed mode, sharing))

@afdia
Copy link
Collaborator

afdia commented Sep 2, 2022

Hi, thanks for the report, although I don't think that we can do much about it as we use the rsyntaxapane library for our textarea.

I guess you are talking about the "Default fontfamily" setting, right? Does the font of the properties panel text change after you switch to Monospace? Usually it should only change the font which is used in the resulting diagram. The properties panel should always use a Monospace font.

@jderijke
Copy link
Author

jderijke commented Sep 3, 2022

I guess you are talking about the "Default fontfamily" setting, right?

that's right

Does the font of the properties panel text change after you switch to Monospace? Usually it should only change the font which is used in the resulting diagram. The properties panel should always use a Monospace font.

Indeed it is not affected, but the problems associated with miscalculating the text width (mostly cursor shows at the wrong spot) disappear.

@afdia
Copy link
Collaborator

afdia commented Sep 4, 2022

Ok thanks, it's an interesting behavior which was not reported before (as far as I know) but good to know that the setting fixes the issue for you
I leave it as an open bug to let others find the solution if they have the same behavior

@afdia afdia added the bug label Sep 4, 2022
@jderijke
Copy link
Author

jderijke commented Dec 17, 2022

It appears that the problem appears when I'm working with a second display.
Both displays are set to their recommended values, but on my laptop screen the recommended setting is size of text, apps..". set to 125%, while on my second screen this is 100%. The problem appears on my second display (100%). Setting both to the same value (125%) seems to solve the problem.
So some elements in umlet seem to take this setting into account, while others don't.

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

No branches or pull requests

2 participants