dash-canvas
dash-canvas copied to clipboard
implemented some responsiveness
@ycaokris @sstripps this PR implements two things:
- if canvas width is not specified then it takes the full width of the parent element (closes partially #36, the canvas does not resize when you change the size of the window but at least you can now adapt to different screen sizes)
- you can pass a height for the canvas (closes #37). This is overriden if a background image is passed, in order to keep the aspect ratio of the image.
Feel free to fetch this branch and give it a try!
any reason this isn't merged yet?