CSS / Layout cleanup

- Fix select with tags=true causes hidden WebComponents to display

Chosen wants to do sizing calculations which wasn't working properly on w.c.
This commit is contained in:
nathan 2022-04-25 10:39:46 -06:00
parent ca794817eb
commit 7d86272b28
2 changed files with 18 additions and 1 deletions

View File

@ -133,7 +133,13 @@ export class Et2VBox extends Et2Box
css` css`
:host > div { :host > div {
flex-direction: column; flex-direction: column;
}` }
/* CSS for child elements */
::slotted(*) {
/* Stop children from growing vertically. In general we want them to stay their "normal" height */
flex-grow: 0;
}
`
]; ];
} }
} }

View File

@ -275,6 +275,17 @@ egw.extend('utils', egw.MODULE_GLOBAL, function()
old[name] = this.style[name]; old[name] = this.style[name];
} }
} }
else if (this.computedStyleMap)
{
for (var name in props)
{
let s = this.computedStyleMap().get(name)
if (s)
{
old[name] = s.value || "";
}
}
}
jQuery(this).show(); jQuery(this).show();
oldProps.push(old); oldProps.push(old);
}); });