Home › Forums › MapPress Support › Map appearing partially in a toggle › Reply To: Map appearing partially in a toggle
Hi Chris,
I have found a not so elegant solution using mapp0.resize() in conjunction with the toggle’s click event. It works but the slideToggle has to run twice each time, first with duration 0 and then with an actual duration. For some reason the slideToggle has to run twice before the mapp.resize works.
I have to run something like this
<script type=”text/javascript”>
jQuery(function($){
$(document).ready(function(){
$(“#page-slider h3.symple-toggle-trigger”).click(function(){
$(this).toggleClass(“active”).next().slideToggle(0);
mapp0.resize();
$(this).toggleClass(“active”).next().slideToggle(“fast”);
});
});
});
</script>
If you have any suggestions, I am very interested.
Thanks for all your help.
Amir