Detect header height to avoid notch / large header problems

Hi,

In Ionic 4, I’m looking for a way to change the margin-top / height / padding-top… of some elements according to the header size. Didn’t find any way to do that.

How to detect the header size, or detect if it’s a device with a large header ?

Thanks

Still not able to figure it out

Found this https://stackoverflow.com/questions/53773625/how-to-detect-mobile-notch/53773687#53773687 it seems to work :slight_smile: