Addressed and fixed the issue where embedded forms sometimes did not show full height with improved logic