Display Barcode Component

I am using the Barcode Component to display a Data Matrix. Does anyone know if there is a way to format the size of the data-matrix within the boundary of the component. The problem is that the top of the matrix needs more white space and dragging the box to make it bigger also scales the data-matrix. I’m having trouble with a scanner not being able to read the code, and I think it has to do with the background color being in a dark gray with little whitespace inbetween.

I’m not sure if there is a way to do it like that.

But I would just add a white line border to the barcode component, which would give you the same effect.