[julia-users] Re: [Escher] lower and upper bound sliders automatically adjust not to intersect

2015-11-03 Thread Yakir Gagnon
OK, there is a problem with this: the new slider that gets created every time we update u doesn’t update l. l gets updated only after we try to change its subscribed slider, not before. This is problematic because I lifted l and u and if they’re overlapping then I get errors. I’ll get back to

Re: [julia-users] Re: [Escher] lower and upper bound sliders automatically adjust not to intersect

2015-11-03 Thread Shashi Gowda
Hi Yakir, you're right l will only update in response to user action. how about using l′ = lift(min, u, l) instead of l? On Wed, Nov 4, 2015 at 8:53 AM, Yakir Gagnon <12.ya...@gmail.com> wrote: > OK, there is a problem with this: > the new slider that gets created every time we update u doesn’

Re: [julia-users] Re: [Escher] lower and upper bound sliders automatically adjust not to intersect

2015-11-04 Thread Yakir Gagnon
Good one, thanks Shashi! I adjusted it a bit to make sure that the lower bound is always one less than the upper one. This works perfectly (the last two lines in the vbox are just to display and show that u and ll are correct): u = Input(100) l = Input(0) mymin(u,l) = u > l ? l : u - 1 ll = lift(m