return;
}
_this.dialog = _self;
- _this.dialog.getLayout().beginUpdate();
+ this.getLayout().beginUpdate();
- _this.dialog.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);
- _this.dialog.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));
+ this.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);
+ this.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));
- _this.dialog.moveTo(35,35);
+ this.moveTo(35,35);
- _this.dialog.getLayout().endUpdate();
+ this.getLayout().endUpdate();
_this.previewContentPanel.setContent(
'<PRE>' + Roo.util.Format.htmlEncode(_this.data.jsource) + '</PRE>'
);
-
-
-
+
_this.jsonContentPanel.setContent(
'<PRE>' + Roo.util.Format.htmlEncode(_this.data.json) + '</PRE>'
);
+
+ _this.htmlContentPanel.setContent(
+ '<PRE>' + Roo.util.Format.htmlEncode(_this.data.html) + '</PRE>'
+ );
-
+ this.layout.showPanel(0)
}
},
background : true,
}
},
autoScroll : true,
- background : true,
+ background : false,
fitToFrame : true,
region : 'center',
title : "JSON"
+ },
+ {
+ xtype: 'ContentPanel',
+ xns: Roo,
+ listeners : {
+ activate : function (_self)
+ {
+ _this.htmlContentPanel = _self;
+ }
+ },
+ autoScroll : true,
+ background : false,
+ fitToFrame : true,
+ region : 'center',
+ title : "HTML"
}
],
center : {