Resolves #429 eliminate clientWidth in favor of getBoundingClientRect

This commit is contained in:
Peter Cottle 2017-07-02 08:39:21 -07:00
parent be3a565ccd
commit 97e6eef62f
3 changed files with 9 additions and 7 deletions

View file

@ -261,8 +261,9 @@ var Visualization = Backbone.View.extend({
var smaller = 1;
var el = this.el;
var width = el.clientWidth - smaller;
var height = el.clientHeight - smaller;
var elSize = el.getBoundingClientRect();
var width = elSize.width - smaller;
var height = elSize.height - smaller;
// if we don't have a container, we need to set our
// position absolutely to whatever we are tracking