fix(v2): scrollbar via .regles-optionnelles.applicationv2 > .window-content

Le id de DEFAULT_OPTIONS est l'id d'application ui.windows,
PAS l'id DOM (#application-N). Les classes ({classes}) sont
appliquées sur .window-app. CSS ciblé via la classe fonctionne.
This commit is contained in:
fabres
2026-07-22 00:29:56 +02:00
parent c4f9150fdb
commit 6fdb07a4e8
4 changed files with 4 additions and 21 deletions
@@ -51,16 +51,4 @@ export class DialogEncaissementTables extends HandlebarsApplicationMixin(Applica
nonmortel: TABLE_NONMORTEL_DISPLAY,
}
}
async _onRender(context, options) {
this.element.style.flex = "1"
this.element.style.display = "flex"
this.element.style.flexDirection = "column"
this.element.style.overflow = "hidden"
const content = this.element.firstElementChild
if (content) {
content.style.overflowY = "auto"
content.style.flex = "1"
}
}
}
-9
View File
@@ -118,15 +118,6 @@ export class ReglesOptionnelles extends HandlebarsApplicationMixin(ApplicationV2
}
async _onRender(context, options) {
this.element.style.flex = "1"
this.element.style.display = "flex"
this.element.style.flexDirection = "column"
this.element.style.overflow = "hidden"
const content = this.element.firstElementChild
if (content) {
content.style.overflowY = "auto"
content.style.flex = "1"
}
this.element.querySelectorAll(".select-option").forEach(el => {
el.addEventListener("click", async event => {
const id = event.currentTarget.getAttribute("name");