Title: [251446] trunk/Source/WebInspectorUI
Revision
251446
Author
[email protected]
Date
2019-10-22 13:23:24 -0700 (Tue, 22 Oct 2019)

Log Message

Web Inspector: Sources: content of function definition popover sometimes cut off
https://bugs.webkit.org/show_bug.cgi?id=203258

Reviewed by Matt Baker.

* UserInterface/Views/SourceCodeTextEditor.js:
(WI.SourceCodeTextEditor.prototype._showPopoverForFunction.didGetDetails):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (251445 => 251446)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-10-22 20:02:17 UTC (rev 251445)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-10-22 20:23:24 UTC (rev 251446)
@@ -1,5 +1,15 @@
 2019-10-22  Devin Rousso  <[email protected]>
 
+        Web Inspector: Sources: content of function definition popover sometimes cut off
+        https://bugs.webkit.org/show_bug.cgi?id=203258
+
+        Reviewed by Matt Baker.
+
+        * UserInterface/Views/SourceCodeTextEditor.js:
+        (WI.SourceCodeTextEditor.prototype._showPopoverForFunction.didGetDetails):
+
+2019-10-22  Devin Rousso  <[email protected]>
+
         Web Inspector: REGRESSION: Sources: when editing style sheets, the content is sometimes suddenly replaced with the original content of the resource
         https://bugs.webkit.org/show_bug.cgi?id=203235
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js (251445 => 251446)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js	2019-10-22 20:02:17 UTC (rev 251445)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js	2019-10-22 20:23:24 UTC (rev 251446)
@@ -1906,6 +1906,11 @@
                 this._showPopover(content);
                 codeMirror.setValue(formattedText || data.description);
                 this._popover.update();
+
+                // CodeMirror needs a refresh after the popover displays, to layout, otherwise it may appear with the wrong size.
+                setTimeout(() => {
+                    codeMirror.refresh();
+                });
             });
         }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to