Spring loaded hinges are always spread out like a butterfly and mounted flat on the outer frame.
How to get a closet door back on its hinge.
If it is still swinging open on its own repeat this process with the bottom hinge.
Make sure that the top roller properly hinges itself onto the top track and the bottom fits into the bottom track.
Lay the door on a flat surface and unscrew the hinges from the door.
Remember to make sure that the top rollers are directly above the top track s hinge when pulling the door downward.
If a door binds open it grasp the knob and lift up to see if a hinge is loose.
Unscrew the screws holding the bottom hinge to the door frame using a phillips screwdriver.
One requires you to loosen a set screw and slide the bracket in or out.
Reinsert the pin tapping it gently into place from the top with your hammer.
Hold door hinge against cardboard and use utility knife to cut around hinge.
The style shown in the photo requires you to lift the door and drop the pin into a different notch in the bracket.
On the latch side a door is cut at a slight bevel to make it easier to close.
Insert the door s wheels into the double track inside the upper door jamb lifting it as far as it will go.
Unscrew the top hinge from the frame.
Set two or three cardboard shims in the hinge mortises on the door and jamb then replace the hinge.
Adjust the height of the doors by screwing the bottom pin in to lower them or out to raise them.
Remove the shim and test the door.
Open the door to carefully remove it.
Release the door and let it swing gently back to the vertical position.