Recalculate position when screen has changed or when the location changes. Recalculate position when the thickness changes, otherwise it grows outside of the window when a bottom panel thickness changes (we change it through setHeight).