dash-canvas icon indicating copy to clipboard operation
dash-canvas copied to clipboard

implemented some responsiveness

Open emmanuelle opened this issue 5 years ago • 1 comments

@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!

emmanuelle avatar Feb 13 '20 02:02 emmanuelle

any reason this isn't merged yet?

hobob0t avatar Oct 20 '22 16:10 hobob0t