Added title bar height variable for calculating max height of the content div