Web Inspector: Console drawer resizing is broken when console prompt has >1 line...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / ConsoleDrawer.js
index e58231a..3e0f663 100644 (file)
@@ -122,7 +122,8 @@ WI.ConsoleDrawer = class ConsoleDrawer extends WI.ContentBrowser
             return;
 
         let resizerElement = event.target;
-        let mouseOffset = resizerElement.offsetHeight - (event.pageY - resizerElement.totalOffsetTop);
+        let quickConsoleHeight = window.innerHeight - (this.element.totalOffsetTop + this.height);
+        let mouseOffset = quickConsoleHeight - (event.pageY - resizerElement.totalOffsetTop);
 
         function dockedResizerDrag(event)
         {