Since there may be padding between the virtual-scroll component, and the parent scroll container, in that scenario it can cause itemsPerRow to be calculated incorrectly.
This PR attempts to compensate for that scenario by always defining the virtual-scroll element as a block-level element, then using it to calculate the width.
Since there may be padding between the virtual-scroll component, and the parent scroll container, in that scenario it can cause itemsPerRow to be calculated incorrectly.
This PR attempts to compensate for that scenario by always defining the virtual-scroll element as a block-level element, then using it to calculate the width.