calculate entire width instead of using %. Fixes some rendering issues