Skip to content

Commit 3d3d26a

Browse files
authored
Merge pull request #536 from juoceano/fix_532
Fixes #532
2 parents 91b32f2 + 67d3b32 commit 3d3d26a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

folium/plugins/scroll_zoom_toggler.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ def __init__(self):
3535
{% endmacro %}
3636
3737
{% macro html(this,kwargs) %}
38-
<img id="{{this.get_name()}}" alt="scroll"
39-
src="https://cdnjs.cloudflare.com/ajax/libs/ionicons/1.5.2/png/512/arrow-move.png"
40-
onclick="{{this._parent.get_name()}}.toggleScroll()"></img>
38+
<img id="{{this.get_name()}}" alt="scroll"
39+
src="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/png/512/arrow-move.png"
40+
style="z-index: 999999"
41+
onclick="{{this._parent.get_name()}}.toggleScroll()">
42+
</img>
4143
{% endmacro %}
4244
4345
{% macro script(this,kwargs) %}

tests/plugins/test_scroll_zoom_toggler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def test_scroll_zoom_toggler():
2121
# Verify that the div has been created.
2222
tmpl = Template("""
2323
<img id="{{this.get_name()}}" alt="scroll"
24-
src="https://cdnjs.cloudflare.com/ajax/libs/ionicons/1.5.2/png/512/arrow-move.png"
24+
src="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/png/512/arrow-move.png"
25+
style="z-index: 999999"
2526
onclick="{{this._parent.get_name()}}.toggleScroll()"></img>
2627
""")
2728
assert ''.join(tmpl.render(this=szt).split()) in ''.join(out.split())

0 commit comments

Comments
 (0)