vertical align should checking top instead of left

Just quickly reading through code over , seems a bug here.