Skip to content

Commit 60afa5e

Browse files
authored
refactor: enable scroll in plotly iframe (#443)
1 parent 9ceaf4f commit 60afa5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

executor/python_executor/matplot/oomol_matplot_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def render(self, fig_dict):
6464
color_scheme = os.getenv("OOMOL_COLOR_SCHEME", "dark")
6565
# The generated html has default body margin 8px in chrome, remove it.
6666
html = re.sub(r'<html[^>]*?>', r'\g<0><style>html { color-scheme: ' + color_scheme + '; height: 100%; align-content: center } ' +
67-
'body { overflow: hidden; margin: 0 }</style>', html, flags=re.I)
67+
'body { margin: 0 }</style>', html, flags=re.I)
6868
context.preview({ "type": "html", "data": html })
6969
else:
7070
logger.warning('plotly: no sys.modules["oomol"]')
@@ -77,4 +77,4 @@ def render(self, fig_dict):
7777

7878
def import_helper(logger: Logger):
7979
setup_matplot(logger)
80-
setup_plotly(logger)
80+
setup_plotly(logger)

0 commit comments

Comments
 (0)