From a6a3cb9a0fc6711bf686a1e3d13fdd87dc34952a Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 10 Sep 2019 09:51:22 -0600 Subject: [PATCH] Etemplate - make sure dialog is wide enough if there is no title --- api/js/etemplate/et2_widget_dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_dialog.js b/api/js/etemplate/et2_widget_dialog.js index d3a637acd5..6d1c370750 100644 --- a/api/js/etemplate/et2_widget_dialog.js +++ b/api/js/etemplate/et2_widget_dialog.js @@ -518,7 +518,7 @@ var et2_dialog = (function(){ "use strict"; return et2_widget.extend( // Make sure dialog is wide enough for the title // Arbitrary numbers that seem to work nicely. var title_width = 20 + 10 * this.options.title.length; - if(this.div.width() < title_width) + if(this.div.width() < title_width && this.options.title.trim()) { // Auto-sizing chopped the title this.div.dialog('option', 'width', title_width);