Skip to content

Commit

Permalink
Explicitly call resize() after registering handler to always trigger (#…
Browse files Browse the repository at this point in the history
…337)

resize on first load
  • Loading branch information
bobvandevijver authored and helios-ag committed Nov 1, 2018
1 parent 66a54b8 commit a4bcdab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/views/Elfinder/ckeditor.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
$ef.height(h -20).resize();
}
});
$(window).resize();
{% endif %}
});
</script>
Expand Down
1 change: 1 addition & 0 deletions src/Resources/views/Elfinder/elfinder_type.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
$f.height($win_height).resize();
}
});
$window.resize();
{% endif %}
});
</script>
Expand Down
1 change: 1 addition & 0 deletions src/Resources/views/Elfinder/simple.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
$f.height($win_height).resize();
}
});
$window.resize();
{% endif %}
});
</script>
Expand Down

0 comments on commit a4bcdab

Please sign in to comment.