reLayout hook

Hi there. Don't know if you might find this useful, but I needed this feature for a project I'm working on. Keep up the good work!