Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.16k stars 303 forks source link

Screen Scaling issue #3644

Open kenton-r opened 5 years ago

kenton-r commented 5 years ago

Short Summary

The courser orientation (mapping or positioning) or text selection area (coordinates) is incorrect when screen scaling (zooming 200%) is enabled. This impacts clicking on a selected text. The initial selection is ok, but then you can not right click on it or click it to move it. The hit area is a few lines lower and to the right. Control+click on a color to get the color palette is also effected. This is so far the only issue I have experience with scaling and icons look sharp.

Steps to Reproduce

I am running it on Ubuntu with screen scaling set to 200%

Start creating a div tag and the auto complete shows up shifted down and to the right. Select some text and try to right click on it (selection disappears)

Platform Information

Komodo Edit Komodo Edit, version 11.1.1, build 18203, platform linux-x86_64. (I have the nightly installed to see if there was a fix to it, but the problem was also in 11.1)

Ubuntu 18.4 4k high definition monitor.

Additional Information

see attached images komodo_auto_complete komodo_color_hover_3

Naatan commented 5 years ago

Note that the popup mechanic here already is calculating the offset based on pixelRatio, seems for whatever reason on Ubuntu this is not being set to the actual value you'd expect.