OK, problem solved. Apparently the property to allow gorw and shrink was set, and this caused it to shrink to 0,0 in the designer. I re-set it to grow only, and now it is fine.