831 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
+7 more
wpbakery says

Hey guys/gals,

jquery height() returning incorrect height of the div with h2 (@font-face) inside of it, it looks like it calculates height before the @font-face is applied.

Have anyone experienced such a problem?

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says

get the height on window load not on domready

831 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
+7 more
wpbakery says
get the height on window load not on domready

I tried that too but result is the same :(

831 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
+7 more
wpbakery says

Hmm, actually not ;)

I was calling my function twice: .ready() and .load() and after first function call it looked like second does absolutely the same.

Thanks duotive you made me to look at that from different angle

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says
Hmm, actually not ;)

I was calling my function twice: .ready() and .load() and after first function call it looked like second does absolutely the same.

Thanks duotive you made me to look at that from different angle

you are welcome :D

by
by
by
by
by
by