Skip to content

Paragraph, getHeight() ? #2045

Discussion options

You must be logged in to vote

Use this below code worked for me

useEffect(() => {
  if (!paragraph) {
    return;
  }
  setTimeout(() => {
    console.log(paragraph.getHeight());
  }, 50);
}, [paragraph]);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@milindsakhare100
Comment options

@milindsakhare100
Comment options

@wcandillon
Comment options

Answer selected by milindsakhare100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants