Fix #278 (display 'flex' instead of 'block')

Fix syncing of chart legends (#284).
This commit is contained in:
louisnw
2024-02-24 11:33:18 +00:00
parent 8715ddae58
commit 9810940a9b
2 changed files with 100 additions and 76 deletions

View File

@ -109,6 +109,6 @@ class Table(Pane, dict):
def visible(self, visible: bool):
self.is_shown = visible
self.run_script(f"""
{self.id}.container.style.display = '{'block' if visible else 'none'}'
{self.id}.container.style.display = '{'flex' if visible else 'none'}'
{self.id}.container.{'add' if visible else 'remove'}EventListener('mousedown', {self.id}.onMouseDown)
""")