handle resizing should trigger the layout recalculation