Skip to content

Sizing of RCA Image #614

Closed Answered by tmarrinan
tmarrinan asked this question in General
Oct 15, 2024 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Thank for the suggestions - I was able to get it working!
I'll include my code for future reference:

from trame.widgets import vuetify, rca, client
from trame.ui.vuetify import SinglePageLayout

# ...

rca_view_style = 'width: 1000px; height: 600px;'
with SinglePageLayout(server) as layout:
    client.Style('#rca-view div div img { width: 100%; height: auto; }')
    with layout.content:
        with vuetify.VContainer(fluid=True, classes='pa-0 fill-height', style='justify-content: center; align-items: start;'):
            v = rca.RemoteControlledArea(name='view', display='image', id='rca-view', style=rca_view_style)

In this manner, I can set the width and height of the RCA (div), and se…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jourdain
Comment options

@tmarrinan
Comment options

@jourdain
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tmarrinan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants