Center selection bug

Sometimes Ace editor doesn’t correctly centre when to quickly called
after creating a new editor. So building a small timeout.