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

Conflicts:
	scripts/cp.js
Fixed JS warning.
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
Merge branch 'api-1.2' into cp-1.1

Conflicts:
	library.json