I want to thank you for changing the way code boxes are resized now with v2.7e. However, when you edit a code object after it is positioned and sized on the form, it will resize its height value to the default 400 pixels instead of remaining at the value it was before the edit. The only way to stop this behavior is to lock the object.
Yes it probably should remember the height it is set to.
Keep in mind that nothing has changed except the default mouse mode. So now when you stretch a code object with the mouse it changes the size. In previous versions, it changed the scaling. The ALT option changes the scaling as before.