lundi 10 mai 2021

Getting mismatching height values mobile safari - same device but different iOS version

I just wondering why am getting different value for

document.documentElement.clientHeight

For example: when in landscape iPhone 11 - iOS < 14.2 gives 414 in css pixel but, when in landscape iPhone 11 - iOS > 14.2 gives 364 in css pixel

Is there anything changed with above iOS 14.2 versions?




Aucun commentaire:

Enregistrer un commentaire