Skip to content
Snippets Groups Projects
Commit 3cb3a86c authored by srosse's avatar srosse
Browse files

OO-4097: resize always the background size of the hotspot's solution

parent 986fa456
No related branches found
No related tags found
No related merge requests found
...@@ -520,11 +520,9 @@ ...@@ -520,11 +520,9 @@
}); });
jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name} div.o_oo_hotcontainer>div').each(function(index, el) { jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name} div.o_oo_hotcontainer>div').each(function(index, el) {
var jEl = jQuery(el); var jEl = jQuery(el);
if(jEl.css('height') == '0px') { var containerEl = jEl.closest("div.o_oo_hotcontainer");
var containerEl = jEl.closest("div.o_oo_hotcontainer"); jEl.css('height', containerEl.css('height'));
jEl.css('height', containerEl.css('height')); jEl.css('background-size', containerEl.css('width') + " " + 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