That commit you link to is definitely not the cause, the cause is the fact that .d-header is using position:fixed, due to getting the class docked
This seems related to this change by @eviltrout (maybe he can look deeper, but it seems to be due to getting a class of docked when you shouldn’t… ?)
https://github.com/discourse/discourse/commit/fa2bffd618f1b5336cb9ba0f4e0dd74780f8edc5