Panel rect transform is wierd

The rect transform of a panel has a top value of 1.5239e-05 and bottom value of the same. Nothing I’ve tried can fix it unless I delete and re-add it to the scene. If I do then the mask, scroll rect and other gui controls do not work on the panel and I cannot scroll through the informaton onscreen.

Anyone else run into something like this?

The problem came from the fact that I was vertically stretching the panel. Once I locked it to the middle, the problem ceased to exist.