Anyone have been on bedrest for a majority of their pregnancy did you gain a lot weight?

I had some heavy bleeding this pregnancy and they resolved now at almost 22 weeks but finding it hard not to gain weight when you eat and lay down