Framework WIP:

- Get nextmatch sizing more nicely without messing with dynheight
This commit is contained in:
nathan 2024-05-30 10:57:31 -06:00
parent fe1fb39552
commit 9076110345
2 changed files with 33 additions and 0 deletions

View File

@ -171,6 +171,11 @@ egw-app {
&::part(content) {
flex-direction: column;
overflow-y:hidden;
}
& > div[id] > div {
height: 100%;
}
}
@ -178,6 +183,27 @@ egw-app {
/*** WIDGETS ***/
/* This should mostly go away with webcomponents */
/* Get nextmatch sizing more nicely without messing with dynheight */
div.et2_nextmatch {
display: flex;
flex-direction: column;
align-items: stretch;
height: 100%;
width: 100%;
overflow: hidden;
& > div:not(:first-child) {
flex: 1 1 100%;
max-height: 100%;
}
.egwGridView_outer {
height: 100%;
}
}
.egwGridView_scrollarea {
overflow-x: hidden;
overflow-y: auto;

View File

@ -239,6 +239,13 @@ export class EgwFramework extends LitElement
if(typeof app.opened == "undefined")
{
app.opened = this.shadowRoot.querySelectorAll("sl-tab").length;
// Need to update tabApps directly, reference doesn't work
if(typeof this.tabApps[appname] == "object")
{
let tabApps = {...this.tabApps};
tabApps[appname] = app;
this.tabApps = tabApps;
}
this.requestUpdate("applicationList");
}