Skip to content

Commit

Permalink
fix tooltip position when scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsaxifrage committed Jan 27, 2018
1 parent 1542f78 commit 7d5886e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion canvas/assets/templates/client/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@ function CanvasCore(){
}
this.page.append(tooltip);
var right = pos.x > self.page.size().width/2;
// TODO: This is a hotfix.
var scroll = tk('.page-content-wrap').ith(0, true).scrollTop;
// TODO: make right do something
tooltip.css({
'top': pos.y - 5 + 'px',
'top': pos.y - scroll - 5 + 'px',
'left': pos.x - 5 + 'px'
})
.classify('hidden', false)
Expand Down

0 comments on commit 7d5886e

Please sign in to comment.