When Hermione pressed herself closer to Draco he took off his jacket and wrapped it around her shoulders and hugged her again afterwards, gently pressing his chin against the top of her head. Their height difference paid off greatly for him.