rig in edit mode different from rig in pose mode

I had a character all rigged, but his legs were too short. I edited the legs, then edited the rig to match the new length. Now when I go into pose mode or object mode, the knees are bent, but in edit mode, the knees are outstretched. How can I fix it so the poses match in edit and object/pose mode?

I’ve tried to match the pose in edit mode with what’s in object and pose mode, but it just goes further out. I’ve also tried to clear out the positions (alt-g, alt-s, alt-r). Any ideas?

Here’s the file:
http://www.pasteall.org/blend/9372

Your shin goes all the way to the bottom of the the figure, but instead it should be ending at the beginning of its ik target (i think the heel bone in your example).
In edit mode select the top end of the ik target press shift s and cursor to selection. then select the bottom end of your shin bone and press shift s -> selection to cursor.

That worked great. Thanks.