Skip to content

How to get the width and height of VueFlow Component? #1903

Closed Answered by bcakmakoglu
rookie-orange asked this question in Q&A
Discussion options

You must be logged in to vote
const { dimensions } = useVueFlow()

console.log(dimensions.value.height, dimensions.value.width)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rookie-orange
Comment options

@rookie-orange
Comment options

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