Fixes term edition form not opening on the right place on terms list.

This commit is contained in:
mateuswetah 2020-03-13 17:22:09 -03:00
parent 6d8d2ceaae
commit 3597e0cf29
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ export default {
}, },
eventOnEditTerm(term) { eventOnEditTerm(term) {
// Position edit form in a visible area // Position edit form in a visible area
let container = document.getElementById('repository-container'); let container = document.getElementsByClassName('repository-level-page')[0];
if (container && container.scrollTop && container.scrollTop > 80) if (container && container.scrollTop && container.scrollTop > 80)
this.termEditionFormTop = container.scrollTop - 80; this.termEditionFormTop = container.scrollTop - 80;
else else