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.
This commit is contained in:
Kartik K. Agaram 2024-06-16 05:08:03 -07:00
parent 721f58d62e
commit f1bd89cb5e
1 changed files with 1 additions and 0 deletions

View File

@ -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