I'm noticing some inconsistent behavior with Anchors based on whether it's set up in the Editor or in code. In the Editor I set up an anchor like this:

everything behaves as I need. However, if I set those values in code, the object shrinks to 2x2 and starts moving off into infinity and beyond. The only way to stop the infinity and beyond bit is to set up an Anchor for the bottom. However, that screws up the behavior we need for adjusting screen sizes.
Is there something else I need to do to get my anchors to behave the same if it's set up in the editor or in code? Is there some special way I need to handle null anchors?
Thanks
-Mo