muigui 0.0.21 → 0.0.24

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muigui",
3
- "version": "0.0.21",
3
+ "version": "0.0.24",
4
4
  "description": "A Simple GUI",
5
5
  "main": "dist/0.x/muigui.js",
6
6
  "module": "dist/0.x/muigui.module.js",
@@ -40,6 +40,10 @@ export default class Container extends Controller {
40
40
  const elem = c0.domElement;
41
41
  elem.remove();
42
42
  c0.setParent(null);
43
+ } else {
44
+ this.#controllers.forEach(c => {
45
+ c.remove(controller);
46
+ });
43
47
  }
44
48
  return this;
45
49
  }
@@ -201,7 +201,7 @@ export default {
201
201
  }
202
202
  .muigui-root>div:nth-child(2),
203
203
  .muigui-menu>div:nth-child(2) {
204
- flex: 1 1 auto;
204
+ flex: 0 0 auto;
205
205
  }
206
206
 
207
207
  .muigui-controller {
@@ -276,15 +276,20 @@ export default {
276
276
  background-image: var(--image-closed);
277
277
  }
278
278
 
279
- .muigui-open>.muigui-open-container {
279
+ .muigui-open > .muigui-open-container {
280
280
  transition: all 0.1s ease-out;
281
281
  overflow: auto;
282
- height: 100%;
282
+ max-height: calc(100vh - 3em);
283
283
  }
284
284
  .muigui-closed>.muigui-open-container {
285
285
  transition: all 0.1s ease-out;
286
+ max-height: 0;
287
+ height: 0; /* make it unambiguous */
288
+ min-height: 0; /* overrides .muigui-controller min-height */
286
289
  overflow: hidden;
287
- min-height: 0;
290
+ padding: 0;
291
+ margin: 0;
292
+ border: 0;
288
293
  }
289
294
  .muigui-open>.muigui-open-container>* {
290
295
  transition: all 0.1s ease-out;