Should I keep a bathroom door open or closed to keep it from expanding?
Leave the door open to reduce humidity, better yet: knock out the hinge pins, pull the door  and lay the door flat on some sawhorses and give it a good glossy paint job paying special attention to the top and bottom edges.