more quote identeiifers fixessss
[Pman.Core] / widgets / ContentPanel2.js
1 //<script type="text/javascript">
2
3
4 // I'm not sure if this is the best way to do this..
5
6
7 Roo.ContentPanel2 = function(el, config, content){
8      Roo.ContentPanel2.superclass.constructor.call(this,el, config, content);
9      
10 }
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');
16         }
17         if(this.toolbar){
18             var te = this.toolbar.getEl();
19             height -= te.getHeight();
20             te.setWidth(width);
21         }
22         if(this.toolbar2){
23             var te = this.toolbar2.getEl();
24             height -= te.getHeight();
25             te.setWidth(width);
26         }
27         if(this.adjustments){
28             width += this.adjustments[0];
29             height += this.adjustments[1];
30         }
31         return {'width': width, 'height': height};
32     }
33 });
34