|
|
@@ -42,10 +42,13 @@ window.Header = function getHeader(object) {
|
|
|
}
|
|
|
});
|
|
|
let resetTrWidth = function(){
|
|
|
- _parentNodeTemp.find('tr').css('width',$(document).width());
|
|
|
- this._columns.forEach(function (column){
|
|
|
- $("#dom_"+column.name+"_temp").css('width',$("#dom_"+column.name).width())
|
|
|
- })
|
|
|
+ _parentNodeTemp.css('width',($(document).width()-_parentNodeTemp.offset().left*2)+'px');
|
|
|
+ // _this._columns.forEach(function (column){
|
|
|
+ // let protoTargetWidth = (parseInt($("#dom_" + column.name ).css('width')))-16;
|
|
|
+ // let floatingColumn = $("#dom_" + column.name + "_temp");
|
|
|
+ // floatingColumn.css('width', protoTargetWidth);
|
|
|
+ // floatingColumn.find('span').css('width', protoTargetWidth);
|
|
|
+ // })
|
|
|
};
|
|
|
$(window).resize(resetTrWidth);
|
|
|
setTimeout(resetTrWidth,200)
|