Skip to content

Commit

Permalink
[canvas-] clear box sizes on reset()
Browse files Browse the repository at this point in the history
Update what is visible after data changes in the source sheet.
  • Loading branch information
midichef authored and anjakefala committed Nov 7, 2024
1 parent 775afd3 commit bedc087
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions visidata/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ def nRows(self):
def reset(self):
'clear everything in preparation for a fresh reload()'
self.polylines.clear()
self.canvasBox = None
self.visibleBox = None
self.cursorBox = None
self.left_margin = self.leftMarginPixels
self.legends.clear()
self.legendwidth = 0
Expand Down

0 comments on commit bedc087

Please sign in to comment.