compute width/height automatically
set inline-block style otherwise cannot compute width and height
Merge pull request #1 from thelmanews/compute-width-height

Compute width height