File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default class Style {
7777 // Find corresponding footer cell
7878 const footerCell = this . footer . querySelector ( `.dt-cell[data-col-index="${ colIndex } "]` ) ;
7979
80- if ( ~ ~ ( bodyCell . offsetLeft - scrollLeft ) > colLeft ) {
80+ if ( bodyCell && ~ ~ ( bodyCell . offsetLeft - scrollLeft ) > colLeft ) {
8181 headerCell . style . transform = `translateX(${ - scrollLeft - 1 } px)` ;
8282 if ( footerCell ) {
8383 footerCell . style . transform = `translateX(${ scrollLeft ? - scrollLeft - 1 : 0 } px)` ;
@@ -91,7 +91,7 @@ export default class Style {
9191 this . _settingHeaderPosition = false ;
9292 if ( this . instance . noData ) {
9393 $ . style ( $ ( ".no-data-message" ) , {
94- left : `${ this . instance . wrapper . clientWidth / 2 - left } px`
94+ left : `${ this . instance . wrapper . clientWidth / 2 - ( - scrollLeft ) } px`
9595 } )
9696 }
9797 this . _settingHeaderPosition = false ;
You can’t perform that action at this time.
0 commit comments