fixes #7949

Sets height to form to avoid resizing when filename link is not shown