handle iframe height when pie chart legend drops below