Can't interact with tabs at top of display in high dpi |
||||
Issue descriptionAt 150% scale, the cursor does not interact with tabs, the new tab button, or the caption buttons when at the top of a maximized window. It instead shows a resize cursor, but clicking and dragging does nothing.
,
Jul 13
It shouldn't be broken normally... is this related to multi-monitor or pixel canvas? If not, this is a much higher priority issue.
,
Jul 13
pixel canvas shouldn't affect event handling unless i'm missing something. +malay
,
Jul 13
It's not related to multi-monitor or pixel canvas. Occurs on both dev and stable, and I'd guess it's a Windows-only issue. The basic issue seems to be that the offscreen non-client area above a maximized window is 11 pixels tall at 150% scale, but we convert that to dips before laying out or doing hit testing. As a result, the top row of pixels comes in at 7.333 aka 7 dips, so we don't draw there and we consider hit tests there to fall outside the client area. You can see that tabs don't quite reach the top visually, nor do the caption buttons.
,
Jul 13
Bret just informed me that I need to log out and back in to get everything fully into a single-display state; when I do that, the issue is not present.
,
Jul 13
Hmm, interesting. What keeps the state persistent across restart on windows?
,
Jul 13
#6: Windows has a notion of "global device scale factor" that's set once on login and never updated. This is only for compatibility with Windows 7's hidpi mode, but Chrome still has some bugs when the "global" and "per-monitor" scale factors don't match.
,
Jul 23
,
Sep 14
Should be fixed by: https://chromium-review.googlesource.com/c/chromium/src/+/1214747 Thanks to tbergquist@ for the pointer to the correct code for retrieving frame thickness. |
||||
►
Sign in to add a comment |
||||
Comment 1 by tbergquist@chromium.org
, Jul 12