Skip to content

Commit

Permalink
fix set logical size in JupyterRenderCanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar authored Dec 26, 2024
1 parent 9fc9627 commit d0a40c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rendercanvas/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def _rc_get_pixel_ratio(self):
return self._pixel_ratio

def _rc_set_logical_size(self, width, height):
self._logical_size = width, height
self.css_width = f"{width}px"
self.css_height = f"{height}px"

Expand Down

0 comments on commit d0a40c7

Please sign in to comment.