Fix legend container positioning in iframe