Posts

Showing posts from March 12, 2019

I have a requirement where I should have vertical scroll bar for complete table but horizontal scroll bar for...

Image
0 document.getElementById("top").onscroll = function() { var div = document.getElementById("top").scrollTop; var div1 = document.getElementById("top1").scrollTop; var div2top = document.getElementById("d3").scrollTop; var div2left = document.getElementById("d3").scrollLeft; if(div>0){ c = document.getElementById("d3"); c.scrollTo(div2left, div); } var offsetHeight = 0; var scrollHeight = 0; } .table-wrapper { display:flex; height:100px; overflow-y:scroll; box-sizing:border-box; } .innerdiv{ //height:200px; height:100px; display:flex; } .d