partly implemented resize on parent then child change