[elm-discuss] Re: Fire an event when a div changes size?

2017-01-31 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, January 31, 2017 at 5:32:28 PM UTC, OvermindDL1 wrote: > > Yeah that is hard to do in Elm, best method would be to get the CSS to do > it for you if at all possible, else fall back to a port. > Ok, thanks. I think I can achieve what I want more easily with CSS - just move the

[elm-discuss] Re: Fire an event when a div changes size?

2017-01-31 Thread OvermindDL1
Yeah that is hard to do in Elm, best method would be to get the CSS to do it for you if at all possible, else fall back to a port. On Tuesday, January 31, 2017 at 9:54:16 AM UTC-7, Rupert Smith wrote: > > > > On Tuesday, January 31, 2017 at 4:32:47 PM UTC, OvermindDL1 wrote: >> >> Probably the

[elm-discuss] Re: Fire an event when a div changes size?

2017-01-31 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, January 31, 2017 at 4:32:47 PM UTC, OvermindDL1 wrote: > > Probably the easier way would be to just get its new size when its content > changes, you can Json.Decode it out of a custom event if you can somehow > get it to fire an event, any event > Yes, I can easily get its size if

[elm-discuss] Re: Using Elm with existing UI controls

2017-01-31 Thread Joe Andaverde
The DOM could still be invalidated and redrawn at any time by virtual-dom. I haven't studied the code to see when it decides to recreate an element. On Monday, January 30, 2017 at 11:57:38 AM UTC-6, Josh Szmajda wrote: > > Do you think it's a viable alternate solution for now for an application

[elm-discuss] Re: Fire an event when a div changes size?

2017-01-31 Thread OvermindDL1
Probably the easier way would be to just get its new size when its content changes, you can Json.Decode it out of a custom event if you can somehow get it to fire an event, any event (a port, or just grab it from the port?). Would it not be easiest to finagle the CSS to do what you want

[elm-discuss] Re: Fire an event when a div changes size?

2017-01-31 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, January 31, 2017 at 4:14:51 PM UTC, Rupert Smith wrote: > > If I can get an event to fire then I can use debois/elm-dom to get its > size. > > I am rendering some markdown into a div, and I want to pick up the new > size of the div as its contents change. The markdown is being edited

[elm-discuss] Fire an event when a div changes size?

2017-01-31 Thread 'Rupert Smith' via Elm Discuss
If I can get an event to fire then I can use debois/elm-dom to get its size. I am rendering some markdown into a div, and I want to pick up the new size of the div as its contents change. The markdown is being edited elsewhere, so I can't just use onInput. It is possiblt to walk around the DOM

Re: [elm-discuss] I wish ELM could just be used in the browser

2017-01-31 Thread art yerkes
The current elm try page uses a server side compiler, which is ok, but not ideal for some uses. The ghcjs compiled elm compiler, with other build infrastructure in javascript is here: https://www.npmjs.com/package/elm-basic-compile On Tue, Jan 31, 2017 at 3:02 AM, Zachary Kessin

Re: [elm-discuss] elm-lang/http and evancz/elm-http

2017-01-31 Thread Eduardo Cuducos
There was a discussion about the removal of Http.url in this list . Actually I miss that function and usually just copy and paste from Evan's

Re: [elm-discuss] I wish ELM could just be used in the browser

2017-01-31 Thread Zachary Kessin
I think there was an effort to build the elm compiler in ghcjs, not sure how far it got. Zach ᐧ On Tue, Jan 31, 2017 at 12:05 PM, 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com> wrote: > On Sunday, January 29, 2017 at 2:40:09 AM UTC, Wyatt Benno wrote: >> >> Thanks all! I still

[elm-discuss] Re: Submitted for your Amusement (?) -- the Memo Metaphor for Module Messaging.

2017-01-31 Thread 'Rupert Smith' via Elm Discuss
On Saturday, January 28, 2017 at 10:58:22 PM UTC, Robert Woodhead wrote: > > I know just enough about Elm to be a true danger to myself and everyone in > my immediate vicinity, so I am not sure if this is a good idea. However, > even if it is not, I learned a few things while coding it up. >

Re: [elm-discuss] I wish ELM could just be used in the browser

2017-01-31 Thread 'Rupert Smith' via Elm Discuss
On Sunday, January 29, 2017 at 2:40:09 AM UTC, Wyatt Benno wrote: > > Thanks all! I still do not see why ELM can never be compiled directly in > the browser. A V8 engine compiler for ELM? > After all it becomes JavaScript right? Clearly it can be done: http://elm-lang.org/try Or does that