Somehow adding Geocoder disables map resize

Discussion created by fuliaoli on Feb 14, 2014
Latest reply on Feb 14, 2014 by fuliaoli
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?