Skip to content

Manually set bounding box size #7463

Answered by klavsbuss
klavsbuss asked this question in Q&A
Discussion options

You must be logged in to vote

Finally found fix. Instead of trying to resize bounding box, i've created "invisible" rectangle with opacity: 0 and necessary sizing. Then grouped letter with rectangle and got bounding box in correct size.

        let group = new fabric.Group([ letter, rect ], {
            left: 0,
            top: 0,
        });

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@timoostrich
Comment options

Answer selected by klavsbuss
Comment options

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

@xorb
Comment options

@asturur
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants