Is there a way to get total header height


#1

iphone x header height is more higher than other phone header, is there a way to get total header height for each different platform using css?


#2

i am using javascript to solve the issue
document.getElementById("homeContent").childNodes[1].style.marginTop = document.getElementById("header").offsetHeight+'px';

but how do i using scss to solve, and variables i can use?


#3

Best to use ViewChild and ElementRef with Ionic to access DOM elements. A google search will show you the process (if interested)

Nothing complicated to it


#4

ok , i will try it, thank you