The driver's manual has a paragraph on this actually (why this could happen, and how to restore it):
NOTE
If the battery was disconnected during vehicle
maintenance, or for other reasons such as a
switch continues to be operated after the
window is fully open/close, the window will not
fully...