Skip to content

Commit d15e3f9

Browse files
committed
By default, don't set a height and width on output_widget()
1 parent f97552e commit d15e3f9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ipyshiny/_ipyshiny.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,14 @@
3030

3131

3232
def output_widget(
33-
id: str, *, width: str = "100%", height: str = "400px", inline: bool = False
33+
id: str, *, width: Optional[str] = None, height: Optional[str] = None
3434
) -> Tag:
35-
# TODO: we should probably have a way to customize the container tag, like you can
36-
# in htmlwidgets
3735
return tags.div(
3836
*libembed_dependency(),
3937
output_binding_dependency(),
4038
id=id,
4139
class_="shiny-ipywidget-output",
42-
style=css(
43-
width=width, height=height, display="inline-block" if inline else None
44-
),
40+
style=css(width=width, height=height),
4541
)
4642

4743

0 commit comments

Comments
 (0)