diff --git a/src/interactions/drag/xDragBoxInteraction.ts b/src/interactions/drag/xDragBoxInteraction.ts index 540ecf1dd0..91c6618b0e 100644 --- a/src/interactions/drag/xDragBoxInteraction.ts +++ b/src/interactions/drag/xDragBoxInteraction.ts @@ -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});