fix #5418757083608 dialog positioning correctly in iframe depending if scrolling or not