From cad9b5684f8c419a2964932f2c44b7db3d0dbb0a Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 17 Mar 2023 11:51:03 +0100 Subject: [PATCH] minor improvements --- ccp/js/methodeditorcontroller2.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ccp/js/methodeditorcontroller2.js b/ccp/js/methodeditorcontroller2.js index b0cafb8..e2c8cc4 100644 --- a/ccp/js/methodeditorcontroller2.js +++ b/ccp/js/methodeditorcontroller2.js @@ -172,7 +172,6 @@ class CCPMethodEditorController extends HTMLElement{ connectNewEditRequest(){ document.addEventListener("neweditrequest", ev=>{ - this.parentElement.scrollIntoViewIfNeeded() this.cloneOrEditMethod(ev.detail) }) } @@ -361,6 +360,7 @@ class CCPMethodEditorController extends HTMLElement{ this.#rootdoc.querySelector(".plexiglass").classList.toggle("d-none") this.render() this.#locked = false + this.parentElement.scrollIntoViewIfNeeded() } render(){ @@ -475,7 +475,6 @@ class CCPMethodEditorController extends HTMLElement{
Scripts