Add possibility to measure height while app is hidden