Skip to content

Commit

Permalink
Follow up to #142: Make sure overflow: visible applies for .vega-embed
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 19, 2024
1 parent 938d3ed commit 5d873e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions shinywidgets/static/shinywidgets.css
Original file line number Diff line number Diff line change
@@ -6,6 +6,16 @@
overflow: hidden;
}

/*
* At least one exception is .vega-embed, which needs to be visible.
* This especially important for things like FacetChart, where responsive
* sizing isn't supported.
* https://github.com/altair-viz/altair/blob/5dac297/altair/jupyter/jupyter_chart.py#L103-L106
*/
.shiny-ipywidget-output:has(> .vega-embed) {
overflow: visible;
}

/*
* The .forward-fill-potential class gets added after the widget gets displayed (since we
* don't know if it's going to fill until then). Also note that we intentionally do this

0 comments on commit 5d873e0

Please sign in to comment.