Added proportional resize by default.
Fixed gird overflow issue.