Added maxHeaderHeight variable

Change-Id: I99e88ad825e4a48c4fb58abe7e00ce359529f1f2