-
Sorry if this is an ipywidgets question, but I can't figure out how to set max-width on the canvas. If I go into the browser debugger and manually set I am constructing the canvas this way: canvas = Canvas(width=self.width, height=self.height, sync_image_data=True) I've tried using Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Did you try the following? canvas = Canvas(width=self.width, height=self.height, sync_image_data=True)
canvas.layout.max_width = '100%' |
Beta Was this translation helpful? Give feedback.
-
I am not sure canvas = Canvas(width=self.width, height=self.height, sync_image_data=True)
canvas.layout.width = '100%' |
Beta Was this translation helpful? Give feedback.
-
When I went back and just set canvas.style.width to "100%" and canvas.style.height to "auto" everything worked as expected. Sorry for the noise! |
Beta Was this translation helpful? Give feedback.
When I went back and just set canvas.style.width to "100%" and canvas.style.height to "auto" everything worked as expected. Sorry for the noise!