This commit is contained in:
David Brazda
2024-11-15 07:25:08 +01:00
parent 1deb397e28
commit 1f4aa4fa8e
3 changed files with 7 additions and 3 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.13', version='2.2.14',
packages=find_packages(), packages=find_packages(),
python_requires='>=3.8', python_requires='>=3.8',
install_requires=[ install_requires=[

View File

@ -42,6 +42,10 @@ export class Legend {
this.div.style.maxHeight = '300px'; this.div.style.maxHeight = '300px';
this.div.style.overflowY = 'auto'; this.div.style.overflowY = 'auto';
this.div.style.overflowX = 'hidden'; this.div.style.overflowX = 'hidden';
this.div.style.position = 'absolute'; // Add this
this.div.style.backgroundColor = 'white'; // Add this
this.div.style.zIndex = '3'; // Add this
this.div.style.padding = '8px'; // Add this
this.div.style.display = 'none'; // This will be changed to 'block' when needed this.div.style.display = 'none'; // This will be changed to 'block' when needed
// Create a wrapper for the content to ensure proper scrolling // Create a wrapper for the content to ensure proper scrolling
@ -119,7 +123,7 @@ export class Legend {
toggle.appendChild(svg); toggle.appendChild(svg);
row.appendChild(div) row.appendChild(div)
row.appendChild(toggle) row.appendChild(toggle)
this.div.appendChild(row) this.contentWrapper.appendChild(row)
const color = series.options().color; const color = series.options().color;
this._lines.push({ this._lines.push({