Skip to content

Commit

Permalink
Remove another parseFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
teamdandelion committed Apr 29, 2014
1 parent 9d540f3 commit b725c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/drag/xDragBoxInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Plottable {
public _drag(){
super._drag();
var width = Math.abs(this.origin[0] - this.location[0]);
var height = parseFloat(this.hitBox.attr("height"));
var height = this.componentToListenTo.availableHeight;
var x = Math.min(this.origin[0] , this.location[0]);
var y = 0
this.dragBox.attr({x: x, y: y, height: height, width: width});
Expand Down

0 comments on commit b725c3c

Please sign in to comment.