RESOLVED DUPLICATE of bug 152076 149946
Web Inspector: Can't resize docked inspector after changing font size
https://bugs.webkit.org/show_bug.cgi?id=149946
Summary Web Inspector: Can't resize docked inspector after changing font size
Nikita Vasilyev
Reported 2015-10-08 22:56:44 PDT
Created attachment 262751 [details] [Animated GIF] Bug Steps: 0. Open Web Inspector docked 1. Press Command-+ to change font size 2. Resize the Inspector's split view by clicking and dragging on the resizer. Expected: Changing font size shouldn't affect resizing. Actual: When increased font size, Inspector's split view decreases its height when I drag up. Note that pressing Command- followed by Command-Minus still breaks the resizing.
Attachments
[Animated GIF] Bug (438.85 KB, image/gif)
2015-10-08 22:56 PDT, Nikita Vasilyev
no flags
Radar WebKit Bug Importer
Comment 1 2015-10-08 22:57:08 PDT
Nikita Vasilyev
Comment 2 2015-10-22 22:16:46 PDT
We may need to detect the current page zoom level to fix this. http://stackoverflow.com/questions/1713771/how-to-detect-page-zoom-level-in-all-modern-browsers/5078596#5078596: WebKit: measure the preferred size of a div with -webkit-text-size-adjust:none Disclaimer: I haven't looked closely at the issue.
Timothy Hatcher
Comment 3 2015-10-23 09:21:50 PDT
Curious. I suspect the event points are in a different scale than the WebView we tell the InspectorFrontendHost to resize.
Blaze Burg
Comment 4 2015-10-23 12:32:42 PDT
(In reply to comment #2) > We may need to detect the current page zoom level to fix this. > > http://stackoverflow.com/questions/1713771/how-to-detect-page-zoom-level-in- > all-modern-browsers/5078596#5078596: > WebKit: measure the preferred size of a div with > -webkit-text-size-adjust:none > > Disclaimer: I haven't looked closely at the issue. This is now exposed through InspectorFrontendHost. But I think the fix for this is in the WK2 code to resize the window. We are probably getting bad numbers for the viewport size.
Nikita Vasilyev
Comment 5 2015-12-09 16:20:42 PST
*** This bug has been marked as a duplicate of bug 152076 ***
Note You need to log in before you can comment on or make changes to this bug.