Update size based on container size changes

... and not on window size changes.
Merge pull request #20 from glampr/patch-1

Update size based on container size changes