fix
This commit is contained in:
File diff suppressed because one or more lines are too long
2
setup.py
2
setup.py
@ -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=[
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user