fixes #5576 Code field on widget structure needs to be bigger

Fixed the issue and pushed the code for review, please check it.