Skip to content
Snippets Groups Projects
Commit 71f4a9f6 authored by srosse's avatar srosse
Browse files

OO-3878: resize canvas after bootstrap opens the collapsed panel

parent c3640f60
No related branches found
No related tags found
No related merge requests found
......@@ -504,6 +504,14 @@
jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name}').on('show.bs.collapse', function () {
jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name}_toggler').removeClass('o_icon_open_togglebox').addClass('o_icon_close_togglebox');
})
jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name}').on('shown.bs.collapse', function () {
jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name} canvas').each(function(index, el) {
var jEl = jQuery(el);
if(jEl.css('height') == '0px') {
jEl.css('height', jEl.attr('height') + "px");
}
});
})
});
/* ]]> */
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment