react-heatmap-grid
react-heatmap-grid copied to clipboard
ylabels follow scroll because it is absolute
If you include react-heatmap-grid inside a div with long height that is overflow-y-scroll, the ylabels follow scroll. I tried changing the css inside chrome developer mode from
style="position: absolute; text-align: right; padding-right: 5px; padding-top: 13.5135px; width: 200px;"
to
style="position: static; text-align: right; padding-right: 5px; padding-top: 13.5135px; width: 200px;"
and it seemed to work. Is there any reason you guys set it to position: absolute for the ylabels' div?
If you include react-heatmap-grid inside a div with long height that is overflow-y-scroll, the ylabels follow scroll. I tried changing the css inside chrome developer mode from
style="position: absolute; text-align: right; padding-right: 5px; padding-top: 13.5135px; width: 200px;"
to
style="position: static; text-align: right; padding-right: 5px; padding-top: 13.5135px; width: 200px;"
and it seemed to work. Is there any reason you guys set it to position: absolute for the ylabels' div?
Where did you added the position:static ?