CDB-1858 bugfixed
Gets the height of the window and not the document
Merge remote-tracking branch 'origin/CDB-1858' into hotfix/20140225