chromiumembedded / cef

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

Tooltip not correctly shown when DPI > 100% #3744

Closed alanareal closed 4 weeks ago

alanareal commented 4 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 4 months ago

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

alanareal commented 4 months ago

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

magreenblatt commented 3 months 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 3 months ago

Possibly related to the changes in screen_1443650.patch

magreenblatt commented 4 weeks ago

I'm not able to reproduce this problem on Windows 11 using M130. Still reproduces on Windows 10.

magreenblatt commented 4 weeks ago

Possibly related to the changes in screen_1443650.patch

Confirmed that this is fixed on Windows 10 by reverting the above patch.