Skip to content
Snippets Groups Projects
Commit 141b954f authored by srosse's avatar srosse
Browse files

OO-4097: resize the div with the background image of hotspot

parent 69363f40
No related branches found
No related tags found
No related merge requests found
......@@ -511,6 +511,14 @@
jEl.css('height', jEl.attr('height') + "px");
}
});
jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name} div.o_oo_hotcontainer>div').each(function(index, el) {
var jEl = jQuery(el);
if(jEl.css('height') == '0px') {
var containerEl = jEl.closest("div.o_oo_hotcontainer");
jEl.css('height', containerEl.css('height'));
jEl.css('background-size', containerEl.css('width') + " " + containerEl.css('height'));
}
});
})
});
/* ]]> */
......
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