iframe resets when I setHeight

In Vaadin 8.1, if I embed an iframe (either via a label or a BrowserFrame) and then resize it, the page inside the iframe reloads. Is there any way to prevent this? I’m calling item.setHeight(***, %). Thanks!

Any ideas?