Tweaked an inline comment.
Brian Vaughn committed
Apr 13, 2019 at 15:38 UTC
518f3d75f8eba06a44dc2e208c49f569b2d2cb3d
1 file changed
+1
-1
src/devtools/views/Components/Element.js
+1
-1
@@ -77,7 +77,7 @@ export default function ElementView({ data, index, style }: Props) {
77
78
// We want to bring the whole <Component> name into view,
79
// including the expansion toggle and the "=== $r" hint.
80
- // However, even calling scrollIntoView() on their parent node
80
+ // However, even calling scrollIntoView() on a wrapper parent node (e.g. <span>)
81
// wouldn't guarantee that it will be *fully* brought into view.
82
// As a workaround, we'll have two anchor spans, and scroll each into view.
83
if (scrollAnchorEndRef.current !== null) {