chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.24k stars 455 forks source link

Tooltip not correctly shown when DPI > 100% #3744

Open alanareal opened 2 months ago

alanareal commented 2 months ago

Describe the bug Tooltips are truncated when text size is configurated over 100%

To Reproduce Set text size at 125% image Go on a page with hints (for example wikipedia :https://fr.wikipedia.org/wiki/Wiki) hover a text/button with the hint several times

Expected behavior the hint tooltip should be correctly shown like on other browser or with a 100% text size configuration

Actual behavior image

Versions :

Additional context Does the problem reproduce with the cefclient or cefsimple sample application at the same version -> yes

Does the problem reproduce with Google Chrome at the same version-> no

It worked with version 108.4.130

magreenblatt commented 2 months ago

Please test in version 126 or newer. Please test cefclient/cefsimple with --enable-chrome-runtime.

alanareal commented 2 months ago

Also reproducing it with version 126 and --enable-chrome-runtime

magreenblatt commented 1 month ago

At 125% scale, if you hover the text multiple times, sometimes it will display correctly and sometimes not. It always displays correctly for me at 200% scale. I suspect this may be a rounding error in computing either the text size or the tooltip size.

image image

magreenblatt commented 1 month ago

Possibly related to the changes in screen_1443650.patch