calculates panel width differently
Merge branch 'master' into gh-pages