From f6085d0131b9e950828791d3600ebc3388238b1f Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 26 Jun 2019 16:46:01 +0000 Subject: [PATCH] Make scroll behavior way more idiomatic --- architype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/architype.js b/architype.js index 236e93a..5621490 100644 --- a/architype.js +++ b/architype.js @@ -659,7 +659,7 @@ class EditorEntryBase extends ListenUtils { } onElemFocus() { - this.elem_.scrollIntoView({block: 'center'}); + this.elem_.scrollIntoView({block: 'nearest'}); } onKeyDown(e) {