X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_grid_ColumnModel.js.html;fp=docs%2Fsrc%2FRoo_grid_ColumnModel.js.html;h=8823ccaed6ec9ee4c6c9eb9c816a736acd4481a3;hp=1e16807401618ef7d3d12dbb8796edc9ab1165d5;hb=d81ddeecb21edfe27401017eb4d0cc01dfae425b;hpb=5a09638750d76b5c2f42753ab924401909761f61
diff --git a/docs/src/Roo_grid_ColumnModel.js.html b/docs/src/Roo_grid_ColumnModel.js.html
index 1e16807401..8823ccaed6 100644
--- a/docs/src/Roo_grid_ColumnModel.js.html
+++ b/docs/src/Roo_grid_ColumnModel.js.html
@@ -108,6 +108,21 @@
Roo.extend(Roo.grid.ColumnModel, Roo.util.Observable, {
getColumnWidth : function(col){
- return this.config[col].width * 1 || this.defaultWidth;
+ getColumnWidth : function(col, gridSize)
+ {
+ var cfg = this.config[col];
+
+ if (typeof(gridSize) == 'undefined') {
+ return cfg.width * 1 || this.defaultWidth;
+ }
+ if (gridSize === false) { return cfg.width || false;
+ }
+ var sizes = ['xl', 'lg', 'md', 'sm', 'xs'];
+
+ for(var i = sizes.indexOf(gridSize); i < sizes.length; i++) {
+ if (typeof(cfg[ sizes[i] ] ) == 'undefined') {
+ continue;
+ }
+ return cfg[ sizes[i] ];
+ }
+ return 1;
+
},