Closed kashcode closed 9 years ago
Code that fixed that problem:
componentDidMount: function () {
var domNode = this.getDOMNode();
var domContainer = domNode.parentNode;
var header = domContainer.querySelector(".ngReactGridHeaderInner");
var viewPort = domContainer.querySelector(".ngReactGridViewPort");
domNode.firstChild.addEventListener('scroll', function (e) {
header.scrollLeft = viewPort.scrollLeft;
});
this.performFullRender();
},
@turbosasa awesome! Would you mind submitting a PR?
This can be closed thanks to @turbosasa PR #43
Please check this plunk http://plnkr.co/edit/7CNEwo?p=preview in this example I create two grids on first grid scrolling works fine, but on second grid horizontal scrolling scrolls data without headings, I need fix :)