konvajs/konva

Container ignores canvas width

Mikilll94 opened this issue · 1 comments

https://jsbin.com/kiveruqoxa/2/edit?html,js,output

image

As you can see I have set the canvas width and height to 100. But the container spans the entire width. Why? It should have the same width as canvas.

width defines canvas size.
If you want to have a container with the same size, just put display: inline-block on it.