update
compute collapsed height