Scratchpad boundary fix

Fix for #1859.  Screenshot attached.
![screen shot 2014-06-11 at 3 38 45 pm](https://cloud.githubusercontent.com/assets/4885404/3251948/54bf7c84-f1b9-11e3-8b8b-2499c485834e.png)