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.23',
|
version='2.2.24',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
@ -158,12 +158,13 @@ export class Legend {
|
|||||||
|
|
||||||
if (this.isCollapsed) {
|
if (this.isCollapsed) {
|
||||||
this.contentWrapper.style.display = 'none';
|
this.contentWrapper.style.display = 'none';
|
||||||
this.div.style.maxHeight = 'auto';
|
this.div.style.maxHeight = '40px'; // Changed from 'auto' to fixed height for buttons
|
||||||
this.div.style.height = 'auto';
|
this.div.style.height = '40px'; // Added fixed height
|
||||||
this.collapseButton.innerHTML = '+';
|
this.collapseButton.innerHTML = '+';
|
||||||
} else {
|
} else {
|
||||||
this.contentWrapper.style.display = 'flex';
|
this.contentWrapper.style.display = 'flex';
|
||||||
this.div.style.maxHeight = '300px';
|
this.div.style.maxHeight = '300px';
|
||||||
|
this.div.style.height = 'auto'; // Reset height to auto
|
||||||
this.collapseButton.innerHTML = '−';
|
this.collapseButton.innerHTML = '−';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user