perfect-gui 4.0.7 → 4.1.0
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.
- package/package.json +1 -1
- package/src/index.js +5 -1
- package/src/styles.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -621,6 +621,7 @@ export default class GUI {
|
|
|
621
621
|
let closed = typeof options.closed == 'boolean' ? options.closed : false;
|
|
622
622
|
let name = options.name || '';
|
|
623
623
|
let color = options.color || null;
|
|
624
|
+
let maxHeight = options.maxHeight || null;
|
|
624
625
|
|
|
625
626
|
this.imageContainer = null;
|
|
626
627
|
|
|
@@ -633,10 +634,13 @@ export default class GUI {
|
|
|
633
634
|
if (closed) {
|
|
634
635
|
className += ' p-gui__folder--closed';
|
|
635
636
|
}
|
|
637
|
+
|
|
638
|
+
let container_style = color ? `background-color: ${color};` : '';
|
|
639
|
+
container_style += maxHeight ? `max-height: ${maxHeight}px;` : '';
|
|
636
640
|
|
|
637
641
|
let container = this._createElement({
|
|
638
642
|
class: className,
|
|
639
|
-
inline:
|
|
643
|
+
inline: container_style,
|
|
640
644
|
});
|
|
641
645
|
|
|
642
646
|
let folderHeader = this._createElement({
|