Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kklemon committed Jun 6, 2024
1 parent 37ec964 commit a1bcf5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/penai/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def _render_svg(
),
)

print('bbox', bbox)

# Set the window size to the size of the SVG element, assuming that it is placed at the origin.
# We add a small buffer to the window size to account for margins, scrollbars, etc.
self.web_driver.set_window_size(bbox.width + 32, bbox.height + 32)
Expand Down

0 comments on commit a1bcf5f

Please sign in to comment.