From 2f5a97126e2ffde2b548e8b1189873a3500574db Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 3 Sep 2018 12:46:06 +0800 Subject: [PATCH] Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- Pman.Dialog.CmsBlog.bjs | 2 +- Pman.Dialog.CmsBlog.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.CmsBlog.bjs b/Pman.Dialog.CmsBlog.bjs index 7cefad31..74439f61 100644 --- a/Pman.Dialog.CmsBlog.bjs +++ b/Pman.Dialog.CmsBlog.bjs @@ -75,7 +75,7 @@ "items" : [ { "listeners" : { - "show" : "function (_self)\n{\n // @see the contentpanel - center - resize handler.\n\n _this.centerLayoutPanel.getLayout().getRegion('south').showPanel(0);\n \n var w = Roo.lib.Dom.getViewWidth();\n var h = Roo.lib.Dom.getViewHeight();\n this.resizeTo(w-50, h-50);\n this.center();\n \n _this.centerLayoutPanel.getLayout().getRegion('south').resizeTo(h - 450);\n \n _this.westLayoutPanel.getLayout().getRegion('south').resizeTo(h - 450);\n \n Pman.Cms.pageEditAddCustomFields();\n \n /*\n var ew = Math.max(250, w-150); // was 350?/ why?\n //var eh = Math.max(250, h-350) ;\n var eh = 200;\n \n var bd = _this.form1.findField('body');\n \n if (bd.resizeEl) { \n bd.width = ew;\n bd.height = eh;\n // since render delays resize.. \n bd.resizeEl.resizeTo.defer(110, bd.resizeEl,[ bd.width, bd.height ] );\n //_this.bodycol.el.setWidth(bd.width+20);\n }\n var bd = _this.form2.findField('extended');\n if (bd.resizeEl) { \n bd.width = ew;\n bd.height = eh;\n // since render delays resize.. \n bd.resizeEl.resizeTo.defer(110, bd.resizeEl,[ bd.width, bd.height ] );\n // _this.extendcol.el.setWidth(bd.width+20);\n }\n var bd = _this.form3.findField('extra_css');\n if (bd) { \n bd.el.setWidth(ew);\n //_this.keywordscol.el.setWidth(ew+20);\n }\n \n // fix messed up scroll.\n _this.dialog.layout.el.dom.scrollTop = 0;\n \n */\n}" + "show" : "function (_self)\n{\n // @see the contentpanel - center - resize handler.\n\n _this.centerLayoutPanel.getLayout().getRegion('south').showPanel(0);\n \n var w = Roo.lib.Dom.getViewWidth();\n var h = Roo.lib.Dom.getViewHeight();\n this.resizeTo(w-50, h-50);\n this.center();\n \n _this.centerLayoutPanel.getLayout().getRegion('south').resizeTo(h - 450);\n \n _this.westLayoutPanel.getLayout().getRegion('south').resizeTo(h - 450);\n \n Pman.Cms.pageEditAddCustomFields();\n \n \n \n /*\n var ew = Math.max(250, w-150); // was 350?/ why?\n //var eh = Math.max(250, h-350) ;\n var eh = 200;\n \n var bd = _this.form1.findField('body');\n \n if (bd.resizeEl) { \n bd.width = ew;\n bd.height = eh;\n // since render delays resize.. \n bd.resizeEl.resizeTo.defer(110, bd.resizeEl,[ bd.width, bd.height ] );\n //_this.bodycol.el.setWidth(bd.width+20);\n }\n var bd = _this.form2.findField('extended');\n if (bd.resizeEl) { \n bd.width = ew;\n bd.height = eh;\n // since render delays resize.. \n bd.resizeEl.resizeTo.defer(110, bd.resizeEl,[ bd.width, bd.height ] );\n // _this.extendcol.el.setWidth(bd.width+20);\n }\n var bd = _this.form3.findField('extra_css');\n if (bd) { \n bd.el.setWidth(ew);\n //_this.keywordscol.el.setWidth(ew+20);\n }\n \n // fix messed up scroll.\n _this.dialog.layout.el.dom.scrollTop = 0;\n \n */\n}" }, "modal" : true, "collapsible" : false, diff --git a/Pman.Dialog.CmsBlog.js b/Pman.Dialog.CmsBlog.js index 34a4c3d5..870a6517 100644 --- a/Pman.Dialog.CmsBlog.js +++ b/Pman.Dialog.CmsBlog.js @@ -220,6 +220,8 @@ Pman.Dialog.CmsBlog = { Pman.Cms.pageEditAddCustomFields(); + + /* var ew = Math.max(250, w-150); // was 350?/ why? //var eh = Math.max(250, h-350) ; -- 2.39.2