adding a way for the popup to access its height from within the popup