X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo.js.html;fp=docs%2Fsrc%2FRoo.js.html;h=6f1200f3888ad3379efa6e0a14ac4ab4d007806d;hp=886427cc75d62bc52165bff2bdedd464c1e2dbde;hb=d81ddeecb21edfe27401017eb4d0cc01dfae425b;hpb=5a09638750d76b5c2f42753ab924401909761f61 diff --git a/docs/src/Roo.js.html b/docs/src/Roo.js.html index 886427cc75..6f1200f388 100644 --- a/docs/src/Roo.js.html +++ b/docs/src/Roo.js.html @@ -668,7 +668,30 @@ Roo.factory(conf, Roo.data); { var node = Roo.DomQuery.selectNode(selector,root); return node ? Roo.get(node) : new Roo.Element(false); - } + }, + /** + * Find the current bootstrap width Grid size + * Note xs is the default for smaller.. - this is currently used by grids to render correct columns + * @returns {String} (xs|sm|md|lg|xl) + */ + + 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' + } + + } });