Fixed Ruler Addon Editor extra lines

Patch for Issue :  #2439 - Rulers Addon makes editor scroll too far downwards

Now I think the demo for Rulers is looking better as the issue pointed by lkcampbell.
Please review the code and try to merge if you feel it the issue is resolved properly.

Thank you
Dheeraj