Mason
Mason copied to clipboard
May I suggest
Since your elements matrix is dependent on element calculations, may I suggest to automatically set the container of the elements to relative/absolute and also the item selected to be set as a block. This way here you get proper calculations and the element matrix array won't be dynamically created with improper size.