Update to center-children docs

This commit is contained in:
David Botton 2022-02-02 14:24:20 -05:00
parent b49d6b883a
commit 6578755af2

View file

@ -145,7 +145,9 @@ nil. Resizable only works if overflow is set to :SCROLL"))
(defgeneric center-children (clog-element &key vertical horizontal)
(:documentation "Align children of CLOG-ELEMENT VERTICAL (default t)
and/or HORIZONTAL (default t). This will set the DISPLAY property of
CLOG-ELEMENT to :FLEX."))
CLOG-ELEMENT to :FLEX. Note: if children of clog-element are using
absolute positioning they will not flow with flex and will not be
centered."))
(defmethod center-children ((obj clog-element) &key (vertical t) (horizontal t))
(set-styles obj `(("display" "flex")