diff --git a/src/scripts/GUI/builder/windowman.tabs.js b/src/scripts/GUI/builder/windowman.tabs.js index 840a2d7..39a964e 100644 --- a/src/scripts/GUI/builder/windowman.tabs.js +++ b/src/scripts/GUI/builder/windowman.tabs.js @@ -131,6 +131,12 @@ class Tabs { ((nested.dictionary.get(this, [name, `elements`, `tabs`, ID, `header`]) && ((nested.dictionary.get(options, [`automatic`]) != null) ? !options[`automatic`] : true)) ? ((this[name][`elements`][`tabs`][ID][`container`].classList.contains(`active`)) ? false : this[name][`elements`][`tabs`][ID][`header`].click()) : false); + + // Scroll to the tab. + if (nested.dictionary.get(this, [name, `elements`, `tabs`, ID, `header`])) { + // Scroll to the tab. + this[name][`elements`][`tabs`][ID][`header`].scrollIntoView({"behavior": "smooth", "block": "start"}); + }; // Remove the lock. this[`status`][`opening`] = false;