<div class="cd-plotly-box-wrapper">
  <style scoped>
    .cd-plotly-box {
      @supports not (-webkit-overflow-scrolling: touch) {
        min-height: {{ min_height }}vh;
      }

      @supports (-webkit-overflow-scrolling: touch) {
        min-height: {{ scale * 1024 | int }}px;
        max-height: 1024px;
      }
    }
  </style>
  <div class="cd-plotly-box">
    {{ dom }}
    <script type="application/javascript">
      setTimeout(function () {
        window.CAULDRON.resizePlotlyBox('#{{ id }}');
      }, 500);
    </script>
  </div>
</div>
