fix of window. Get inner size instead of full height.