Sasa Posted November 24, 2014 Report Share Posted November 24, 2014 Izmantoju šo gridu https://github.com/josebalius/ngReactGrid Bet ja uz lapas ir divi gridi http://plnkr.co/edit/7CNEwo?p=preview Tad scollējot otro gridu horizontāli kolonu headeri neiet līdzi, bet stāv uz vietas. Varbūt kādam ir idejas kā šo salabot? Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 24, 2014 Report Share Posted November 24, 2014 Tajā ngReactGrid scrolla events skrollo vienmēr pirmo gridu. componentDidMount: function () { var t = this.getDOMNode(), e = document.querySelector('.ngReactGridHeaderInner'), i = document.querySelector('.ngReactGridViewPort'); t.firstChild.addEventListener('scroll', function () { e.scrollLeft = i.scrollLeft }), this.performFullRender() }, Quote Link to comment Share on other sites More sharing options...
0 Sasa Posted November 24, 2014 Author Report Share Posted November 24, 2014 super, tad te būs labojums: 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(); }, Quote Link to comment Share on other sites More sharing options...
Question
Sasa
Izmantoju šo gridu https://github.com/josebalius/ngReactGrid
Bet ja uz lapas ir divi gridi http://plnkr.co/edit/7CNEwo?p=preview
Tad scollējot otro gridu horizontāli kolonu headeri neiet līdzi, bet stāv uz vietas.
Varbūt kādam ir idejas kā šo salabot?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.