Skip to content

Commit

Permalink
use bounding box of canvas instead of parent element
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed May 13, 2015
1 parent ed9abb9 commit 6e2add9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ Viewer.prototype = {
},

boundingClientRect : function() {
return this._domElement.getBoundingClientRect();
return this._canvas.domElement().getBoundingClientRect();
},

_drawWithPass : function(pass) {
Expand Down

0 comments on commit 6e2add9

Please sign in to comment.