Preserve inline styles when using byRow

When using byRow inline padding and border styles were being removed. This fixes the issue.