Fix dialog positioning in FF