Fixed bug in cell editor when editor reaches beyond right grid margin