Made graphHeight automatic if height is defined AND if graphHeight is smaller than the center panel when height is defined as well.