Skip to content

Commit b2ea6e2

Browse files
authored
In _to_png use fullscreen window (#1656)
1 parent e720eb0 commit b2ea6e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

folium/folium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def _to_png(self, delay=3, driver=None):
344344
with temp_html_filepath(html) as fname:
345345
# We need the tempfile to avoid JS security issues.
346346
driver.get(f"file:///{fname}")
347-
driver.maximize_window()
347+
driver.fullscreen_window()
348348
time.sleep(delay)
349349
div = driver.find_element("class name", "folium-map")
350350
png = div.screenshot_as_png

0 commit comments

Comments
 (0)