Skip to content

Commit 5d873e0

Browse files
committed
Follow up to #142: Make sure overflow: visible applies for .vega-embed
1 parent 938d3ed commit 5d873e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

shinywidgets/static/shinywidgets.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
overflow: hidden;
77
}
88

9+
/*
10+
* At least one exception is .vega-embed, which needs to be visible.
11+
* This especially important for things like FacetChart, where responsive
12+
* sizing isn't supported.
13+
* https://github.com/altair-viz/altair/blob/5dac297/altair/jupyter/jupyter_chart.py#L103-L106
14+
*/
15+
.shiny-ipywidget-output:has(> .vega-embed) {
16+
overflow: visible;
17+
}
18+
919
/*
1020
* The .forward-fill-potential class gets added after the widget gets displayed (since we
1121
* don't know if it's going to fill until then). Also note that we intentionally do this

0 commit comments

Comments
 (0)