fix
This commit is contained in:
@ -37,6 +37,9 @@ export class Legend {
|
||||
this.div = document.createElement('div');
|
||||
this.div.classList.add('legend');
|
||||
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.text = document.createElement('span')
|
||||
|
||||
Reference in New Issue
Block a user