This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-22
Channels
- # announcements (3)
- # babashka (6)
- # beginners (29)
- # calva (10)
- # cider (14)
- # clj-kondo (67)
- # cljfx (6)
- # clojure (34)
- # clojure-australia (1)
- # clojure-europe (46)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-spec (6)
- # clojure-uk (27)
- # clojured (1)
- # clojurescript (26)
- # conjure (14)
- # cursive (5)
- # data-science (1)
- # datomic (26)
- # deps-new (10)
- # editors (1)
- # events (2)
- # fulcro (23)
- # graalvm (41)
- # honeysql (5)
- # introduce-yourself (1)
- # jobs (1)
- # jobs-discuss (1)
- # luminus (2)
- # malli (22)
- # meander (5)
- # observability (3)
- # podcasts-discuss (1)
- # rdf (3)
- # re-frame (27)
- # remote-jobs (7)
- # reveal (6)
- # shadow-cljs (45)
- # xtdb (8)
How might one manage dynamic resizing of controls with cljfx? I see various JavaFX examples using bind
which I don't think is exposed, but are width/height properties magically wrapped in event handlers somehow? I would happily use a border pane or similar, but ideally I'd be able to spot changes in a parent container's dimensions and use those to scale JavaFX shapes, which aren't resizeable like other controls.
hmm, it looks like you will need to create an extra-props lifecycle (`make-ext-with-props`) that will add on-width-changed/on-height-changed event listeners to your containers
something along the lines of (fx/make-ext-with-props {:on-width-changed (fx.prop/make (fx.mutator/property-change-listener #(.widthProperty %)) fx.lifecycle/change-listener) ...})