Don't run resize if the content isn't visible.
Merge branch 'master' into api-1.1

Conflicts:
	scripts/cp.js
Make sure displaySolutionsButton and postUserStatistics doesn't get saved.
Merge branch 'master' into api-1.1

Conflicts:
	scripts/cp.js
Make sure displaySolutionsButton and postUserStatistics doesn't get saved.
Merge branch 'master' into api-1.1

Conflicts:
	scripts/cp.js
Merge branch 'api-1.1' into api-1.2
Make sure displaySolutionsButton and postUserStatistics doesn't get saved.
Merge branch 'master' into api-1.1

Conflicts:
	scripts/cp.js
Merge branch 'api-1.1' into api-1.2