Fix centering logic
Fixed ratio calculation
Merge pull request #161 from Wikia/MOB-2219

Mob 2219