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.
The style shown in the photo requires you to lift the door and drop the pin into a different notch in the bracket.
Release the door and let it swing gently back to the vertical position.
Set two or three cardboard shims in the hinge mortises on the door and jamb then replace the hinge.
Angle the bottom of the door toward you while you let it down and the wheels should hook right onto the track.
Adjust the height of the doors by screwing the bottom pin in to lower them or out to raise them.
Remember to make sure that the top rollers are directly above the top track s hinge when pulling the door downward.
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.
If one is loose remove two or more screws and try driving in longer screws.
Open the door to carefully remove it.
If it is still swinging open on its own repeat this process with the bottom hinge.
If a door binds open it grasp the knob and lift up to see if a hinge is loose.
Remove the shim and test the door.
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.
Make sure that the top roller properly hinges itself onto the top track and the bottom fits into the bottom track.
Unscrew the top hinge from the frame.
Lay the door on a flat surface and unscrew the hinges from the door.