Update layout.js

window resize 的时候 resize 一下呗
Merge pull request #1 from imkeke/patch-1

bgAutoResize support window.resize now