Example updated to support dialog reopen

Also need to test pages with large horizontal scroll