#939 The widgets should emit and listen to an event when the layout was changed.