diff options
author | David Thompson <dthompson2@worcester.edu> | 2023-03-26 09:53:32 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2023-03-26 09:53:32 -0400 |
commit | b1ff8792d4f52eb73b3433a4c3d7fa3c1d4baf8f (patch) | |
tree | 48847cde08be551547a4b2d097017d77b5b50697 | |
parent | f2e97b1c428c52a0b603dd272bce68e949220a83 (diff) |
Add auto-resizing version of resize method.
-rw-r--r-- | catbird/node-2d.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/catbird/node-2d.scm b/catbird/node-2d.scm index 218de10..34c9649 100644 --- a/catbird/node-2d.scm +++ b/catbird/node-2d.scm @@ -461,6 +461,9 @@ (expire-local-bounding-box node) (on-child-resize (parent node) node))) +(define-method (resize (node <node-2d>)) + (resize node (default-width node) (default-height node))) + ;;; ;;; Animation |