mobile fixes

This commit is contained in:
Garry Ing
2021-05-17 21:35:39 -04:00
parent 5a604ba1b7
commit 662798e551
4 changed files with 6 additions and 6 deletions

View File

@ -228,7 +228,7 @@ if (typeof window.graphData !== 'undefined') {
const graphWrapper = document.getElementById('graph-wrapper')
const element = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
element.setAttribute('width', graphWrapper.getBoundingClientRect().width)
element.setAttribute('height', window.innerHeight)
element.setAttribute('height', graphWrapper.getBoundingClientRect().height)
element.classList.add('grab', 'grabbing')
graphWrapper.appendChild(element)