Fix #7978 - tidy up layout classes
[roojs1] / Roo / layout / Center.js
1 /*
2  * Based on:
3  * Ext JS Library 1.1.1
4  * Copyright(c) 2006-2007, Ext JS, LLC.
5  *
6  * Originally Released Under LGPL - original licence link has changed is not relivant.
7  *
8  * Fork - LGPL
9  * <script type="text/javascript">
10  */
11 /*
12  * These classes are private internal classes
13  */
14 Roo.layout.Center = function(mgr, config){
15     Roo.layout.Region.call(this, mgr, config, "center");
16     this.visible = true;
17     this.minWidth = config.minWidth || 20;
18     this.minHeight = config.minHeight || 20;
19 };
20
21 Roo.extend(Roo.layout.Center, Roo.layout.Region, {
22     hide : function(){
23         // center panel can't be hidden
24     },
25     
26     show : function(){
27         // center panel can't be hidden
28     },
29     
30     getMinWidth: function(){
31         return this.minWidth;
32     },
33     
34     getMinHeight: function(){
35         return this.minHeight;
36     }
37 });