Skip to content

Commit

Permalink
Update widgets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lisbravo authored Jan 13, 2025
1 parent 052d778 commit fe8d245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightweight_charts/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __init__(self, width: int = 800, height=350, inner_width=1, inner_height=1,
document.getElementById('container').style.width = '{self.width}px'
document.getElementById('container').style.height = '100%'
''')
self.run_script(f'{self.id}.chart.resize({width}, {height})')
self.run_script(f'{self.id}.chart.resize({width*inner_width}, {height*inner_height})')

def _load(self):
if HTML is None:
Expand Down

0 comments on commit fe8d245

Please sign in to comment.