When widgets are docked, they should be aligned to the top, but they are being added to the bottom of the window.