Preventing overflow in .result, also some padding improvements

This fix an overflow issue when the compiled result is bigger than the height of the container. Also fix padding inconsistencies in the same area. 
![before after](https://f.cloud.github.com/assets/2559808/1746905/2b48978c-644c-11e3-8828-c21f8729dd9a.jpg)