dialogs: fix new file template to properly resize (flex)

(integrated from master branch change 6ea58d4 by Todd Whiteman <toddw@activestate.com>)