Skip to content

Commit

Permalink
In _to_png use fullscreen window (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conengmo committed Nov 18, 2022
1 parent e720eb0 commit b2ea6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folium/folium.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _to_png(self, delay=3, driver=None):
with temp_html_filepath(html) as fname:
# We need the tempfile to avoid JS security issues.
driver.get(f"file:///{fname}")
driver.maximize_window()
driver.fullscreen_window()
time.sleep(delay)
div = driver.find_element("class name", "folium-map")
png = div.screenshot_as_png
Expand Down

0 comments on commit b2ea6e2

Please sign in to comment.