Fixes term edition form not opening on the right place on terms list.
This commit is contained in:
parent
6d8d2ceaae
commit
3597e0cf29
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue