OK so your incorrect height is because of this bug:
And the IF statement for visibility:
=IF(Parent!DoubleDoor,1,IF(Parent!Window=5,0,1))
You should use Parent! instead of the component name, helps avoid typo errors and problems if you change a component name, also makes reusing sub components easier.