Determine number of notifications to display based on height of the window

Change-Id: Ib26182a543050e20a3dbc2975c8b6ff762d0a19c