Get the window height when laying out the bar so the height of the items can be calculated to best fit that height.

Change-Id: I3c6d4a9859d6a8da8c006006c4d2a5fc7d20e393