Move a function 'flatten' in 'view.renderer.grid.arrangePositionAll' to 'textAeUtil'. Because same functions used in the controller.
Merge pull request #15 from pubannotation/move_function_flatten

Move function flatten