summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-03-26 09:53:32 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-03-26 09:53:32 -0400
commitb1ff8792d4f52eb73b3433a4c3d7fa3c1d4baf8f (patch)
tree48847cde08be551547a4b2d097017d77b5b50697
parentf2e97b1c428c52a0b603dd272bce68e949220a83 (diff)
Add auto-resizing version of resize method.
-rw-r--r--catbird/node-2d.scm3
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