Just messing around with your code, I tried removing the divs from line 191-195 and the advanced map opened full size in the new window. Not sure if those divs will be necessary in your map later on, but hopefully it at least gives you an idea of where to start!
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.