From 8d2e7fd0c8b783f4a612961a2d4957c6778fa0e6 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 17 Nov 2022 01:23:53 +0100 Subject: [PATCH] Fit content pour dialog chronologie/calendrier Suppression de l'espace perdu --- module/dialog-chronologie.js | 2 +- module/rdd-calendrier-editeur.js | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/module/dialog-chronologie.js b/module/dialog-chronologie.js index 668b4456..31dfe673 100644 --- a/module/dialog-chronologie.js +++ b/module/dialog-chronologie.js @@ -35,7 +35,7 @@ export class DialogChronologie extends Dialog { const options = { classes: ["DialogChronologie"], width: 500, - height: 350, + height: 'fit-content', 'z-index': 99999 }; const conf = { diff --git a/module/rdd-calendrier-editeur.js b/module/rdd-calendrier-editeur.js index 3d14ef5c..cceaa0d3 100644 --- a/module/rdd-calendrier-editeur.js +++ b/module/rdd-calendrier-editeur.js @@ -8,18 +8,19 @@ export class RdDCalendrierEditeur extends Dialog { /* -------------------------------------------- */ constructor(html, calendrier, calendrierData) { - - let myButtons = { - saveButton: { label: "Enregistrer", callback: html => this.fillData() } - }; - - // Common conf - let dialogConf = { content: html, title: "Editeur de date/heure", buttons: myButtons, default: "saveButton" }; - let dialogOptions = { classes: ["rdddialog"], width: 400, height: 300, 'z-index': 99999 } + let dialogConf = { + content: html, + title: "Editeur de date/heure", + buttons: { + save: { label: "Enregistrer", callback: html => this.fillData() } + }, + default: "save" + }; + let dialogOptions = { classes: ["rdddialog"], width: 400, height: 'fit-content', 'z-index': 99999 } super(dialogConf, dialogOptions) this.calendrier = calendrier; - this.calendrierData = calendrierData; //duplicate(calendrierData); + this.calendrierData = calendrierData; } /* -------------------------------------------- */