Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

document.getElementById('myCard').clientHeight wrong value

$
0
0

@lolaswift wrote:

I was setting up clickable area for a ionic card to the full height of the card and I tried to get the height of the card like this:
document.getElementById(‘myCard’).clientHeight
However, when I tried to click on the card, I found out that around 20% of the bottom area of the card wasn’t clickable. That means, the above code didn’t return the correct height.

And all:
document.getElementById(‘myCard’).clientHeight
document.getElementById(‘myCard’).offsetHeight
document.getElementById(‘myCard’).scrollHeight

gave the same value as well.
Why?
Any help would be much appreciated.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>