Somehow adding Geocoder disables map resize

616
1
02-14-2014 10:25 AM
fuliaoli
New Contributor III
I'm having a problem with the map resizing with the window as soon as I've added ESRI's Geocoder. I cannot see much difference between the samples and mine, which is var app.geocoder = new Geocoder({map: app.map}, "search").startup() and CSS is
#search {
display: block;
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 50px; (neither right or left would work)
  }
Can anyone help? 
Regards,
li
0 Kudos
1 Reply
fuliaoli
New Contributor III
I just find out that putting "search" div inside map div would keep auto-resizing, but if I put "search" div outside the map div, the problem occurs. Can anyone give some ideas?
Thanks.
li
0 Kudos