Skip to content

Commit

Permalink
add proper offset calculation for dragselect
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Jun 5, 2019
1 parent c9e8bf2 commit 13b835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samplesheets/src/components/AgGridDragSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
const clientRect = this.$el.getBoundingClientRect()
const scroll = this.getScroll()
const topOffset = 50 // TODO: What causes this? Temporary HACK
const topOffset = document.querySelector('div#sodar-top-container').offsetHeight
// Calculate position and dimensions of the selection box
const left = Math.min(this.startPoint.x, this.endPoint.x) - clientRect.left - scroll.x
Expand Down

0 comments on commit 13b835e

Please sign in to comment.