From f1bd89cb5e6ba23094898c2af49857a681bf4922 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 16 Jun 2024 05:08:03 -0700 Subject: [PATCH] bugfix: gridlines always span entire window To fix this we ensure Viewport (w,h) always matches screen/window dimensions. We choose to track viewport (x,y) by file but (w,h) globally. Seems a little less jarring than (w,h) by file. --- 0012-on.initialize | 1 + 1 file changed, 1 insertion(+) diff --git a/0012-on.initialize b/0012-on.initialize index 32a9ff3..50f0113 100644 --- a/0012-on.initialize +++ b/0012-on.initialize @@ -6,6 +6,7 @@ on.initialize = function(arg) if Settings[Filename] then Viewport = Settings[Filename].viewport end + Viewport.w, Viewport.h = App.screen.size() load_graph_from_disk() A() end