The masonry will not resize with window if you set a actual width to it. It seems like you set the width for masonry horizontal alignment. I suggest you to define a dynamical width range which is shown as below and the masonry will resize with window as expected.
#container{
max-width: 1024px;
min-width: 960px;
margin: 0 auto;
}
Here is a jsfiddle demo