Add a config `refreshwhenswitch` and set a default height value to node .woo-pcont

Add a config `refreshwhenswitch` and set a default height value to node .woo-pcont