Tweaked an inline comment.

This commit is contained in:
Brian Vaughn
2019-04-13 15:38:56 -07:00
committed by GitHub
parent 9162b7165a
commit 518f3d75f8
+1 -1
View File
@@ -77,7 +77,7 @@ export default function ElementView({ data, index, style }: Props) {
// We want to bring the whole <Component> name into view,
// including the expansion toggle and the "=== $r" hint.
// However, even calling scrollIntoView() on their parent node
// However, even calling scrollIntoView() on a wrapper parent node (e.g. <span>)
// wouldn't guarantee that it will be *fully* brought into view.
// As a workaround, we'll have two anchor spans, and scroll each into view.
if (scrollAnchorEndRef.current !== null) {