Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix(sheets): hide rows/columns broken — undefined variables' (#87) from fix/sheets-polish into main

scott b8c7247b ecb6d866

+5 -2
+5 -2
src/sheets/main.ts
··· 4486 4486 const rowHeader = e.target.closest('th.row-header[data-row]'); 4487 4487 const td = e.target.closest('td[data-id]'); 4488 4488 4489 + const sheet = getActiveSheet(); 4490 + const rowCount = sheet.get('rowCount') || DEFAULT_ROWS; 4491 + const colCount = sheet.get('colCount') || DEFAULT_COLS; 4492 + 4489 4493 let items; 4490 4494 if (colHeader) { 4491 4495 // Column header right-click 4492 4496 const col = parseInt(colHeader.dataset.col); 4493 - const colCount_ = sheet.get('colCount') || DEFAULT_COLS; 4494 - const hasAdjacentHiddenCol = isAtHiddenColBoundary(col, colCount_, buildHiddenColSet()); 4497 + const hasAdjacentHiddenCol = isAtHiddenColBoundary(col, colCount, buildHiddenColSet()); 4495 4498 items = [ 4496 4499 { label: 'Sort A \u2192 Z', icon: '\u2191', action: () => { selectedCell = { col, row: 1 }; const sheet = getActiveSheet(); selectionRange = { startCol: col, startRow: 1, endCol: col, endRow: sheet.get('rowCount') || DEFAULT_ROWS }; sortColumn(true); } }, 4497 4500 { label: 'Sort Z \u2192 A', icon: '\u2193', action: () => { selectedCell = { col, row: 1 }; const sheet = getActiveSheet(); selectionRange = { startCol: col, startRow: 1, endCol: col, endRow: sheet.get('rowCount') || DEFAULT_ROWS }; sortColumn(false); } },