panel icon indicating copy to clipboard operation
panel copied to clipboard

Panel viewables displayed inside a ReactiveHTML component don't respect the component size

Open maximlt opened this issue 3 years ago • 0 comments

Panel objects embedded in a ReactiveHTML component don't respect the size of the ReactiveHTML component. Here's an example with a simple Str pane embedded in a basic ReactiveHTML component. As can be seen on the screenshot the embedded pane overflows the parent component.

import panel as pn
import param

class Test(pn.reactive.ReactiveHTML):

    p = param.Parameter()
    
    _template = """<div id="test">${p}</div>"""


Test(p=pn.pane.Str('test ' * 10), background='red', width=200)

image

maximlt avatar Jun 22 '22 16:06 maximlt