X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_Table.js.html;h=f99ba8f13b5642f1a104c3b90f670c40658b873f;hb=7d8290ee43eec264e8d9276b83debe3a035cb929;hp=e4f912657f04a286f38e24446440035cc90f05e5;hpb=2a1db797ae4360623f7e3ac751623317dada79f1;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_Table.js.html b/docs/symbols/src/Roo_bootstrap_Table.js.html
index e4f912657f..f99ba8f13b 100644
--- a/docs/symbols/src/Roo_bootstrap_Table.js.html
+++ b/docs/symbols/src/Roo_bootstrap_Table.js.html
@@ -361,6 +361,7 @@
this.mainBody.on('scroll', this.onBodyScroll, this);
+ this.cm.on("headerchange", this.onHeaderChange, this);
},
@@ -1091,10 +1092,12 @@
onBodyScroll: function()
{
this.mainHead.setStyle({
- 'position' : 'relative',
- 'left': (-1* this.mainBody.dom.scrollLeft) + 'px'
- });
+ if(this.mainHead){
+ this.mainHead.setStyle({
+ 'position' : 'relative',
+ 'left': (-1* this.mainBody.dom.scrollLeft) + 'px'
+ });
+ }
if(this.lazyLoad){
@@ -1121,7 +1124,18 @@
}
}
+ },
+
+ onHeaderChange : function()
+ {
+
+ var header = this.renderHeader();
+ var table = this.el.select('table', true).first();
+
+ this.mainHead.remove();
+ this.mainHead = table.createChild(header, this.mainBody, false);
}
+
});