Added check to only align when showCheckbox is true

The adjustment for a left-aligned legend only needs to be applied
when checkboxes are being shown