Same map, same element, same 420 × 320 box.

One of them was created a frame too early.

created while the box was 0px tall
box   420 × 320
map   420 × 0
tiles  2, in a strip 0px tall
created after the box was laid out
box   420 × 320
map   420 × 320
tiles  6, covering the box
nothing throws Leaflet caches the size it read at creation — only invalidateSize() and a window resize make it read again
Angular 22.1.7 · Leaflet 1.9.4 · numbers asserted by the demo's check script
gdhami.net