plotly / dash-canvas

An interactive image editing component for Dash
https://dash.plot.ly/canvas
Other
84 stars 25 forks source link

Width property of the Canvas as % instead of px #28

Open SivamPillai opened 5 years ago

SivamPillai commented 5 years ago

This is a very promising tool for integrating with Dash. I would like to modify the width property of the canvas to fill the parent Div. The width property of the canvas however, only provides for an integer input. Can we specify width as %?

width="100%"

Not an expert in the 'js' side of things but I am wondering if this could be done directly in the current python api?