---
title: "Unable to auto detect variable height in HTML Macro with Zingtree"
canonical: "https://support.appfire.com/space/HTMLM/358121504/Unable%20to%20auto%20detect%20variable%20height%20in%20HTML%20Macro%20with%20Zingtree"
format: markdown
---
> Macro (aura-html)

## Problem

When using the *HTML Macro* with a service such as Zingtree, the macro does not adjust due to its variable heights. 

Example:

```
<iframe width="100%" height="100%" frameborder="0" seamless src="https://zingtree.com/deploy/tree.php?z=embed&tree_id=580947419&style=panels&persist_names=Restart&persist_node_ids=9">
</iframe>
<script type="text/javascript" src="https://zingtree.com/js/iframeResizerSmart.js"></script>
<script type="text/javascript">iFrameResize();</script>
```

The macro is unable to automatically detect the height or do anything. A height like 3000px or 2000px must be set manually just to make sure all the initial content is displayed.

## Cause

The **Height** macro parameter does not work when an iframe is included in a sanitized *HTML Macro* because the code automatically resizes it to an optimal height. If the HTML content consists of an iframe, the code does not automatically resize.

## Workaround

You can explicitly add a `div` wrapper with a given height in the macro body. 

```
<div style="height: 2000px">
<iframe width="100%" height="100%" frameborder="0" seamless src="https://zingtree.com/deploy/tree.php?z=embed&tree_id=580947419&style=panels&persist_names=Restart&persist_node_ids=9">
</iframe>
</div>
```

## Related articles



> Macro (contentbylabel)