fix onresize event. closes #1094
Merge branch 'master' of github.com:nprapps/elections14