Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions quadratic-client/src/app/gridGL/UI/GridLines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class GridLines extends Graphics {
let size = 0;
for (let x = bounds.left; x <= bounds.right + size - 1; x += size) {
// don't draw grid lines when hidden
if (size !== 0) {
if (size !== 0 && x >= sheet.clamp.left) {
const lines = gridOverflowLines.getColumnVerticalRange(column, range);
if (lines) {
for (const [y0, y1] of lines) {
Expand Down Expand Up @@ -147,7 +147,7 @@ export class GridLines extends Graphics {
let size = 0;
for (let y = bounds.top; y <= bounds.bottom + size - 1; y += size) {
// don't draw grid lines when hidden
if (size !== 0) {
if (size !== 0 && y >= sheet.clamp.top) {
const lines = gridOverflowLines.getRowHorizontalRange(row, [startX, endX]);
if (lines) {
for (const [x0, x1] of lines) {
Expand Down
Loading