pygui: updates to properly save and load canvas size for each canvas separately

This commit is contained in:
Blake Harnden 2021-10-29 14:56:50 -07:00
parent 2b89503432
commit 1ce6e51318
4 changed files with 13 additions and 17 deletions

View file

@ -453,7 +453,7 @@ class Menubar(tk.Menu):
dialog.show()
def click_autogrid(self) -> None:
width, height = self.manager.current_dimensions
width, height = self.manager.current().current_dimensions
padding = (images.NODE_SIZE / 2) + 10
layout_size = padding + images.NODE_SIZE
col_count = width // layout_size