Skip to content

Commit

Permalink
Assign the class's method, not the instance's
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfWhitt committed Dec 31, 2024
1 parent 1ed6b0e commit fdf1fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/travertino/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ def refresh(self, viewport):

def _layout_args(self, viewport):
if "node" in signature(self.style.layout).parameters:
self.__class__._layout_args = self._layout_args_old
self.__class__._layout_args = self.__class__._layout_args_old
else:
self.__class__._layout_args = self._layout_args_new
self.__class__._layout_args = self.__class__._layout_args_new

return self._layout_args(viewport)

Expand Down

0 comments on commit fdf1fa6

Please sign in to comment.