pygui: updates to properly save and load canvas size for each canvas separately
This commit is contained in:
parent
2b89503432
commit
1ce6e51318
4 changed files with 13 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue