Account for margin left and top for contain: true