Added check to ensure that any specified height is overriden before calculating the heights.
Merge pull request #3675 from thomasgohard/fix-equalheight-override-static-height

[Equal heights] Override specified height before calculating heights