Fix issue with setting content inset.

1. Fix bug with invalidating timer in some cases
2. Sometimes content inset increase/decrease calls were not consistent so that it becomes broken
Merge pull request #2 from shpuntov/master

Fix issue with setting content inset.