summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-12-27 07:18:47 -0500
committerDavid Thompson <dthompson2@worcester.edu>2022-12-27 07:18:47 -0500
commit6c7909969e0697c460fee1dd4c17ed5c236c6f15 (patch)
treecfa0a1926ef12104e8690a5afb4a4f36a02f0236
parentc7a76837602d29c8bfe9f0266ebce79fb200e6a6 (diff)
node-2d: Fix width/height slots to be properly observed.
-rw-r--r--catbird/node-2d.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/catbird/node-2d.scm b/catbird/node-2d.scm
index b2c7d95..b845ad0 100644
--- a/catbird/node-2d.scm
+++ b/catbird/node-2d.scm
@@ -335,12 +335,18 @@
;; can be used as a bounding box that doesn't take any
;; transformation matrix into consideration.
(size #:getter size #:init-thunk make-null-rect)
- (width #:accessor width #:init-keyword #:width #:watch? #t #:allocation #:virtual
+ (width #:accessor width
+ #:init-keyword #:width
+ #:observe? #t
+ #:allocation #:virtual
#:slot-ref (lambda (node) (rect-width (size node)))
#:slot-set! (lambda (node w)
(set-rect-width! (size node) w)
(expire-local-bounding-box node)))
- (height #:accessor height #:init-keyword #:height #:watch? #t #:allocation #:virtual
+ (height #:accessor height
+ #:init-keyword #:height
+ #:observe? #t
+ #:allocation #:virtual
#:slot-ref (lambda (node) (rect-height (size node)))
#:slot-set! (lambda (node h)
(set-rect-height! (size node) h)