Add attribute dialog: Hide Length/Precision labels when unavailable
Fix #9259