From: Edward Date: Mon, 3 Sep 2018 05:39:45 +0000 (+0800) Subject: Pman.Dialog.CmsBlog.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Cms;a=commitdiff_plain;h=57774d53dfa07f23dd038ff89313c4fb54a96a3d Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- diff --git a/Pman.Dialog.CmsBlog.bjs b/Pman.Dialog.CmsBlog.bjs index e7a376cf..c040e5e4 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 _this.westLayoutPanel.getLayout().getRegion('south').resizeTo(h - 450);\n \n Pman.Cms.pageEditAddCustomFields();\n \n _this.dialog.getLayout().getRegion('east').collapse();\n _this.dialog.getLayout().getRegion('west').collapse();\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}" + "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 _this.westLayoutPanel.getLayout().getRegion('south').resizeTo(h - 450);\n \n Pman.Cms.pageEditAddCustomFields();\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 f708285b..d84e6eb6 100644 --- a/Pman.Dialog.CmsBlog.js +++ b/Pman.Dialog.CmsBlog.js @@ -219,9 +219,6 @@ Pman.Dialog.CmsBlog = { Pman.Cms.pageEditAddCustomFields(); - _this.dialog.getLayout().getRegion('east').collapse(); - _this.dialog.getLayout().getRegion('west').collapse(); - /* var ew = Math.max(250, w-150); // was 350?/ why?