fix ui widget copyProperties issue
Merge pull request #6885 from andyque/fixCopyProperties

fix ui widget copyProperties issue