Skip to content

Commit

Permalink
Fix grid update when grid isn't in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Sep 17, 2024
1 parent 229fd2c commit b7ae069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/grid.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
do (vector-push (aref old oidx) new)))
;; Update if possible
(setf (slot-value layout 'elements) new)
(when (slot-boundp layout 'layout-parent)
(when (layout-tree layout)
(suggest-size (bounds layout) layout))))

(defmethod enter :before ((element layout-element) (layout grid-layout) &key row col)
Expand Down

0 comments on commit b7ae069

Please sign in to comment.