This commit is contained in:
David Brazda
2024-11-15 06:13:54 +01:00
parent b336857832
commit 6393e618ce
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup( setup(
name='lightweight_charts', name='lightweight_charts',
version='2.2.9', version='2.2.10',
packages=find_packages(), packages=find_packages(),
python_requires='>=3.8', python_requires='>=3.8',
install_requires=[ install_requires=[

View File

@ -37,6 +37,9 @@ export class Legend {
this.div = document.createElement('div'); this.div = document.createElement('div');
this.div.classList.add('legend'); this.div.classList.add('legend');
this.div.style.maxWidth = `${(handler.scale.width * 100) - 8}vw` this.div.style.maxWidth = `${(handler.scale.width * 100) - 8}vw`
this.div.style.maxHeight = '300px'; // Set a maximum height
this.div.style.overflowY = 'auto'; // Enable vertical scrolling
this.div.style.overflowX = 'hidden'; // Prevent horizontal scrolling
this.div.style.display = 'none'; this.div.style.display = 'none';
this.text = document.createElement('span') this.text = document.createElement('span')