This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-26
Channels
- # admin-announcements (3)
- # beginners (44)
- # boot (48)
- # cljs-dev (2)
- # cljsjs (14)
- # cljsrn (2)
- # clojure (32)
- # clojure-android (1)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-russia (7)
- # clojure-spec (51)
- # clojure-uk (21)
- # clojurescript (9)
- # component (2)
- # cursive (4)
- # emacs (5)
- # funcool (1)
- # hispano (3)
- # hoplon (10)
- # immutant (14)
- # jobs (1)
- # jobs-discuss (4)
- # off-topic (15)
- # om (1)
- # onyx (1)
- # planck (36)
- # re-frame (2)
- # reagent (25)
- # spacemacs (2)
- # spirituality-ethics (10)
- # untangled (2)
- # vim (8)
- # yada (1)
Anyway, thanks @jumblerg and @micha. Ok so one other question: the (image* code contains a lot of set elements:
`(bind-in! img [.-style .-display] :block)
(bind-in! img [.-style .-position] :relative)
(bind-in! img [.-style .-width] "100%")
(bind-in! img [.-style .-height] :initial)
(bind-in! img [.-src] url)
(bind-in! e [in .-style .-position] :absolute)
(bind-in! e [in .-style .-top] 0)
(bind-in! e [in .-style .-width] "100%")))))'''
Is there a good reason or just to get the image in quickly? Or should I force (say height & width) by forcing max-width & max-height on a parent elem?
(bind-in! img [.-style .-display] :block)
(bind-in! img [.-style .-position] :relative)
(bind-in! img [.-style .-width] "100%")
(bind-in! img [.-style .-height] :initial)
(bind-in! img [.-src] url)
(bind-in! e [in .-style .-position] :absolute)
(bind-in! e [in .-style .-top] 0)
(bind-in! e [in .-style .-width] "100%")))))
@adamw: this was an experiment to see if we could have an image elem capable of conforming to the shape of the image itself while allowing it to parent children
to explain, i’ve been trying to avoid introducing other positioning schemes (fixed, absolute, and relative models) because they make the composition of the elements more difficult. they also make responsive layouts more challenging since they don’t flow left to right with the other inline elems.