Add automically lay-width compute
fix text length computation
Merge remote-tracking branch 'origin/master'