Perhaps my answer to another question my help.
Otherwise, if you could share a simple solution with your problem it may be easier to help.
A responsive form will only take as much height as it needs to show its content. Its content determines its height, not the parent container/form.