Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Sources: editing a breakpoint action to cause the Code…
…Mirror to wrap doesn't update the `WI.Popover` size https://bugs.webkit.org/show_bug.cgi?id=220643 <rdar://problem/73225206> Reviewed by Patrick Angle. * Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js: (WI.BreakpointActionView.prototype._updateBody): (WI.BreakpointActionView.prototype._handleJavaScriptCodeMirrorUpdate): Added. (WI.BreakpointActionView.prototype._codeMirrorViewportChanged): Deleted. Replace listening for `"viewportChange"` (and `"update"`) with `"updates"`, each time comparing the `getScrollInfo().clientHeight` (we don't care about the `clientWidth` because it's hardcoded in the CSS `.breakpoint-action-eval-editor > .CodeMirror`) with the last value. This is necessary because `"viewportChange"` is only fired when the number of lines changes, which a wrapped line doesn't do. Canonical link: https://commits.webkit.org/251072@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information