Fork me on GitHub
#hoplon
<
2016-06-30
>
mynomoto00:06:57

@adamw: javelin has prop-cell to keep cells in sync with properties

adamw00:06:16

@mynomoto: oh that's useful. Thank you!

Andy03:06:26

@seancorfield: Hi, I tried to run this example https://github.com/hoplon/hoplon/wiki/Get-Started boot -d seancorfield/boot-new new -t hoplon -n address-book. For some reason it creates build.boot with [org.clojure/clojurescript "1.9.93"] while the latest stable version is 1.9.89. The template fails to compile and a subsequent change to 1.9.89 fixes the problem.

Andy03:06:22

What could be a reason that boot picks version from the future?

seancorfield03:06:36

Boot new just does what the template says.

seancorfield03:06:53

(It doesn't even look in the files)

seancorfield04:06:03

Looking at the Hoplon template source, it deliberately uses the very latest available releases when it generates a template.

seancorfield04:06:07

@happy.lisper: Although it hardcodes Clojure to 1.7.0 (in the generated boot.properties file).

seancorfield04:06:52

The error I get is that string/index-of is not found which sounds like a version issue (`index-of` was added to clojure.string in 1.8.0 I think?).

Andy04:06:19

this is exactly an error I encountered.

Andy04:06:52

thx a lot

seancorfield04:06:54

(definitely not a boot-new issue here!)

seancorfield04:06:32

if you update both build.boot and boot.properties in the generated project to Clojure 1.8.0 it will all work

Andy04:06:01

Sorry for that. I moving to boot now and a lot of things are new to me.

seancorfield04:06:14

I just edited those files and I'm looking at "Hello, Hoplon!" in my browser so you should be good.

Andy04:06:24

my solution was to get older, in fact latest stable version of clojurescript. It is interesting though, that 1.9.93 already depends on Clojure 1.8 while 1.9.89 is presumably 1.7 okay.

seancorfield04:06:09

(I don't use Hoplon but you can find me in #C053K90BR any time for questions)

adamw06:06:33

@jumblerg: woo, thanks; we actually worked out we can scale the svg (even inside an object tag if we set it's viewbox and then adjust width & height to the surrounding elem, which feels more hoplon-ui-y anyway.

adamw06:06:28

One thing; we can't find anything setting -maxWidth. -maxHeight is set in ui.cljs/sizebut nothing for width. Is this intentional?

jumblerg06:06:43

@adamw: yes, i had :w :w+ :w- etc in there before, but removed them because i never seemed to need them in practice, and because i was also using them to manage vertical positioning in certain cases

jumblerg07:06:12

maxheight is also not exposed to the user

adamw07:06:35

oh true, it's just set to h

adamw07:06:03

So basically we have an object we would like to set to width 100% until it reaches a certain size.

adamw07:06:11

Can't think of a simple way to do that other than maxWidth

alandipert10:06:57

@happy.lisper: i saw seancorfield's report and fixed the template, should be good now

jumblerg13:06:54

@adamw: i’ve added min, max with for the time being, at least until i have the time to give more consideration to your use case; i imagine that should be sufficient. it feels a bit dirty, however, having these without the corresponding heights, and well… those are really tricky.

Andy13:06:10

@alandipert: thank you. I tested it and it works now.