Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Aug 26, 2020
1 parent 929f4cc commit aa46aa1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions holoviews/plotting/bokeh/element.py
Expand Up @@ -817,9 +817,13 @@ def _update_ranges(self, element, ranges):
frame_aspect = plot.frame_height/plot.frame_width

range_streams = [s for s in self.streams if isinstance(s, RangeXY)]
current_l, current_r = plot.x_range.start, plot.x_range.end
current_b, current_t = plot.y_range.start, plot.y_range.end
current_xspan, current_yspan = (current_r-current_l), (current_t-current_b)
if self.drawn:
current_l, current_r = plot.x_range.start, plot.x_range.end
current_b, current_t = plot.y_range.start, plot.y_range.end
current_xspan, current_yspan = (current_r-current_l), (current_t-current_b)
else:
current_l, current_r, current_b, current_t = l, r, b, t
current_xspan, current_yspan = xspan, yspan

if any(rs._triggering for rs in range_streams):
# If the event was triggered by a RangeXY stream
Expand Down

0 comments on commit aa46aa1

Please sign in to comment.