-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
RCA report size on the server side and it is up to you to properly implement/handle it. https://github.com/Kitware/trame-rca/blob/master/examples/00_cone/app.py#L70-L75 |
Beta Was this translation helpful? Give feedback.
-
Yes, I am able to get the size of the RCA area. But my issue is that I have a visualization where image size is fixed. I'd like to display those images at different resolutions however (i.e. stretch or squash the image), so as to make the user see the visualization at a reasonable size for their screen. |
Beta Was this translation helpful? Give feedback.
-
Thank for the suggestions - I was able to get it working!
In this manner, I can set the width and height of the RCA (div), and set the size of the image nested two other divs inside the RCA div to 100% of the parents width (i.e. the RCA container since other divs also have width set to 100%). Setting height to auto preserves the aspect ratio. |
Beta Was this translation helpful? Give feedback.
Thank for the suggestions - I was able to get it working!
I'll include my code for future reference:
In this manner, I can set the width and height of the RCA (div), and se…