我想有沿页面的底部,但在H-箱创建一个页脚什么到目前为止,我已经做了不起作用:重新使用COM箱布局容器
(defn simple-title [txt]
[re-com/title
:label txt
:level :level1])
(defn main-panel []
(fn []
[v-box
:height "100%"
:children [[h-box
:width "100%"
:children [(simple-title "Should see right at top of page (works)")]
:align-self :start]
[h-box
:width "100%"
:gap "3em"
:align-self :end
:children [(simple-title "Want right at bottom (not working)") (simple-title "Just to its right")]]]]))
我的理解是,:align-self :end
应该做的伎俩。然而,第二个h-box
出现在页面的顶部,直接位于第一个h-box
的下方。
如果有方法可以在flexbox上自行演示问题,请发布。对不起,我对ClojureScript不熟悉。 –