This commit is contained in:
David Brazda
2024-11-15 09:21:52 +01:00
parent cab85bb4f8
commit 33c2d47858
3 changed files with 5 additions and 4 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.23', version='2.2.24',
packages=find_packages(), packages=find_packages(),
python_requires='>=3.8', python_requires='>=3.8',
install_requires=[ install_requires=[

View File

@ -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 = '';
} }
} }