Making a button using code - Can't reset width and height?

My student is trying to create a snake game in App Lab. They sent me the following issue: “Whenever I make a button through code I can’t set its width or height to be less then their initial values. When I make a button in design mode, I am able to do this, but I can’t when I make the buttons with code.” Any suggestions? Thanks!