I found this on GitHub and it works perfectly if I am setting the height based on a landscape view or setting the height based on a portrait view but it does not compensate for