set height dialog form to "auto" and set maxHeight to defautl maxHeight

I think it will be nice when we toggle the form, height of content also toggle. This commit set height of dialog content to "auto", so resize when sliceUp or sliceDown and set MaxHeight, so height of form still can be controlled.