Skip to content

Commit

Permalink
Ensure PlotSize stream works with undefined width/height (#5868)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Aug 28, 2023
1 parent 04d7fa6 commit dbfacbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1429,8 +1429,8 @@ class PlotSize(LinkedStream):
Scale factor to scale width and height values reported by the stream""")

def transform(self):
return {'width': int(self.width * self.scale),
'height': int(self.height * self.scale)}
return {'width': int(self.width * self.scale) if self.width else None,
'height': int(self.height * self.scale) if self.height else None}


class SelectMode(LinkedStream):
Expand Down

0 comments on commit dbfacbe

Please sign in to comment.