Skip to content

Commit

Permalink
Fix scrollToCountries
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSpiffyClean committed Jun 1, 2020
1 parent 1733118 commit f27da65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue-definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ window.app = new Vue({
},

scrollToCountries() {
const ctw = document.getElementsByClassName('customizetopwrapper')[0];
const ctw = document.getElementsByClassName('countriestopwrapper')[0];
document.getElementsByClassName('countries')[0].scrollIntoView();
document.getElementsByTagName('aside')[0].scrollBy(0,-parseFloat(getComputedStyle(ctw)['top'])+1); // the +1 avoids a weird (fractional) scrolling issue
}
Expand Down

0 comments on commit f27da65

Please sign in to comment.