1 //<script type="text/javascript">
4 // I'm not sure if this is the best way to do this..
7 Roo.ContentPanel2 = function(el, config, content){
8 Roo.ContentPanel2.superclass.constructor.call(this,el, config, content);
11 Roo.extend(Roo.ContentPanel2, Roo.ContentPanel, {
12 adjustForComponents : function(width, height){
13 if(this.resizeEl != this.el){
14 width -= this.el.getFrameWidth('lr');
15 height -= this.el.getFrameWidth('tb');
18 var te = this.toolbar.getEl();
19 height -= te.getHeight();
23 var te = this.toolbar2.getEl();
24 height -= te.getHeight();
28 width += this.adjustments[0];
29 height += this.adjustments[1];
31 return {'width': width, 'height': height};