sync
[roojs1] / Roo.js
diff --git a/Roo.js b/Roo.js
index 4b0fc20..bb98fe5 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -677,7 +677,19 @@ Roo.factory(conf, Roo.data);
                
                getGridSize : function()
                {
-                       
+                       var w = Roo.lib.Dom.getViewWidth();
+                       switch(true) {
+                               case w > 1200:
+                                       return 'xl';
+                               case w > 992:
+                                       return 'lg';
+                               case w > 768:
+                                       return 'md';
+                               case w > 576:
+                                       return 'sm';
+                               default:
+                                       return 'xs'
+                       }
                        
                }