fix(header): Max height is not calculated correctly since header element reference is wrong

The max height calculation is using an old scope property go get the header height. This property does not exist anymore as all element access has been re-factored.