When a background video was used in a mega menu, it was only working in edit mode. Indeed, the background video size is computed on page load (and on window resize) but as the video is inside a hidden dropdown menu in this case, the size cannot be properly computed. This commit fixes the issue by recomputing the video size on dropdown menu opening. task-2080590 closes odoo/odoo#38314 X-original-commit: 66ec1c19b63fe26e559ed2d8d7359df974ade789 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
17 lines
665 B
XML
17 lines
665 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates xml:space="preserve">
|
|
<t t-name="website.background.video">
|
|
<div class="o_bg_video_container">
|
|
<div class="o_bg_video_loading d-flex justify-content-center align-items-center text-primary">
|
|
<div class="spinner-border" style="width: 4em; height: 4em;" role="status">
|
|
<span class="sr-only">Loading...</span>
|
|
</div>
|
|
</div>
|
|
<iframe t-att-id="iframeID"
|
|
class="o_bg_video_iframe fade"
|
|
frameBorder="0"
|
|
t-att-src="videoSrc"/>
|
|
</div>
|
|
</t>
|
|
</templates>
|