I would like to get the height of the viewable screen in Lightning Dektop version as well as in Salesforce1 app.
I'm able to retrieve the window height by using $(window).height();
.
But I am not able to retrieve the default header height using $("#oneHeader").height();
when Locker Service is active probably because of the "component/namespace encapsulation". (Currently I subtract the header height from window height to get the viewable screen height)
Is there anyway to get the viewable screen size so that I can ensure my component does not go outside the viewable screen size (irrespective of the screen size)?