[Django]-How to change the height of the parent div of a plotly_app iframe in python/django?

0๐Ÿ‘

I moved the {% plotly_app name='scatter_app_name' %} to be inside a div and added a CSS rule to overflow the 0 height of the original div that encpasulates the iframe:

{% load plotly_dash %}
<div id="container_iframe">
    {% plotly_app name='scatter_app_name' %}
</div>

<style>
    #container_iframe div{
        height: 100%!important  ;
    }
</style>

Worked for me on Firefox and Chrome.

Leave a comment