fix dynamic width calculation
Merge pull request #133 from progandy/master

fix dynamic width calculation