Abstracted small screen fix to common.js.
Abstracted small screen fix to common.js.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/12046043

TechplexEngineer/blockly-old,TechplexEngineer/blockly-old