AutomationEditor: fixed calculation of Y-coordinates for grid and values...

closes #284.