[Seaside] Drag and drop: how do you nest it?
shutej at crazilocks.com
Wed Nov 29 22:45:02 UTC 2006
Hmmm, maybe the two occurrences of:
element.style.position = "absolute"
...in SULightbox>>script, should instead read...
element.style.position = "fixed"
That gets rid of the positioning problems. However, the D&D event is
propogating right through the background layer, even though the links are
all non-operational. Is that a z-index problem?
On 11/29/06, Jeremy Shute <shutej at crazilocks.com> wrote:
> I'm sorry, the referenced class is an object containing class-side string
> constants (a habit that allows me to do crude internationalization fairly
> quickly). You're right in that it should be called SUReorderableList.
> You're right in that the component should be pluggable. You're right in
> that it should at LEAST come bundled with a test, ala the other Seaside
> Now, another quick question. If I can't have nested D&D, I thought to
> myself, "I'll use the lightbox"!
> But the dark overlayed background doesn't fit to all 4 edges of the
> browser window. Instead of masking off the whole screen, the upper-left
> corner of the dark layer fits to the upper-left hand corner of the first
> draggable item in my list (the <li>'s content, not the number the browser
> renders to the left of it.) Looking at...
> ...it appears that the lightbox DOES have an understanding of the window
> boundaries, so I must be doing something wrong. While you're dishing out
> heaping helpings of useful knowledge, do you know where I should be
> looking? :-)
> On 11/29/06, Lukas Renggli <renggli at gmail.com> wrote:
> > > I have a widget that presents an OrderedCollection of other widgets,
> > > allowing you to reorder it. I have attached a file-out of this
> > particular
> > > class. I would be happy if it made it into Seaside. :-)
> > I had a quick look at your code. Some comments:
> > - there is a reference to an unknown class JJSMessages
> > - the class uses the Seaside namespace, but depends on external
> > functionality from Scriptaculous
> > - if this is a widget then it should be pluggable, so that I am not
> > necessarily forced to subclass
> > - it would be good to have an example on the class-side, I don't
> > really understand how to use it
> > Cheers,
> > Lukas
> > --
> > Lukas Renggli
> > http://www.lukas-renggli.ch
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Seaside