resize()

in src/components/draggable.js [89:99]


  resize() {
    const {position, source, target} = this
    source.removeAttribute('transform')
    const rect = source.getBoundingClientRect()
    position.x = rect.x + window.scrollX
    position.y = rect.y + window.scrollY
    target.style.setProperty('left', px(position.x))
    target.style.setProperty('top', px(position.y))
    target.style.setProperty('width', px(rect.width))
    target.style.setProperty('height', px(rect.height))
  }