1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-05-30 05:50:05 +02:00

Ensure template editor scrolls to display buttons

This commit is contained in:
Robbie Antenesse 2020-08-03 16:17:18 -06:00
parent b87f4e7cad
commit 5a728dbd7c

View file

@ -25,6 +25,7 @@ export function showTemplateEditor(show = true) {
document.getElementById('templateFields').style.display = show ? '' : 'none';
if (show) {
document.getElementById('templateTextarea').focus();
document.querySelector('#settingsModal .modal-content section').scrollTop = 9999;
} else {
clearTemplateEditor();
}