height value reset on @Cancel pressed