perfect-gui 5.0.2 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -632,7 +632,7 @@ class O {
632
632
  let l = "p-gui__folder";
633
633
  this.folders.length == 0 && (l += " p-gui__folder--first"), e && (l += " p-gui__folder--closed");
634
634
  let s = c ? `background-color: ${c};` : "";
635
- s += i ? `max-height: ${i}px;` : "";
635
+ s += i ? `max-height: ${i}px; overflow-y: auto;` : "";
636
636
  const o = document.createElement("div");
637
637
  o.className = l, o.style = s, this.wrapper.append(o);
638
638
  const n = document.createElement("div");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "perfect-gui",
3
3
  "type": "module",
4
- "version": "5.0.2",
4
+ "version": "5.0.3",
5
5
  "description": "GUI for JavaScript",
6
6
  "main": "dist/perfect-gui.js",
7
7
  "module": "dist/perfect-gui.js",
package/src/index.js CHANGED
@@ -334,7 +334,7 @@ export default class GUI {
334
334
  }
335
335
 
336
336
  let container_style = color ? `background-color: ${color};` : '';
337
- container_style += maxHeight ? `max-height: ${maxHeight}px;` : '';
337
+ container_style += maxHeight ? `max-height: ${maxHeight}px; overflow-y: auto;` : '';
338
338
 
339
339
  const container = document.createElement('div');
340
340
  container.className = className;