To repair the taskbar in any version of Windows, make sure that no programs are running and delete the following key from the Registry.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects
Once you have deleted the above key, restart your computer and you should notice that the taskbar has been reset to the default settings.