Closed egoag closed 6 years ago
To someone encounter this problem, I fixed it by adding this style:
#graph > canvas {
position: absolute;
top: 0px;
left: 0px;
}
Hi @ugurdogrusoz , why closed? I think the grid canvas should be set the above style maybe also width and height properties instead of nothing when drawGrid is false.
I thought you said you resolved the problem! Please provide a minimal JS Fiddle which reproduces your problem.
My bad, thanks for reopening!
https://jsfiddle.net/youyaochi/w8qzakre/10/
The scroll bar appears!
@youyaochi should be fixed in the unstable branch. Can you please verify and close? Thanks.
To someone encounter this problem, I fixed it by adding this style:
#graph > canvas { position: absolute; top: 0px; left: 0px; }
This solution would not work properly: turn draw grid on, then turn it off. Now, reduce the size of the browser window, scrollbar will appear.
I built the unstable branch and it worked perfectly :)
I noticed that if I set
{drawGrid: false}
, there will be an empty canvas element which cause the whole canvas height higher than it should be. I'm usingcytoscape@3.2.17
withcytoscape-grid-guide@2.2.0
.