Hi Dominik, to move the content and the decoration (e.q. shadow). Use the method getContainerElement() instead of getContentElement(). To get some information from the DOM structure of each widget, have a look at the class description form the widget [1].
Cheers, Chris [1] http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget Dominik Horb schrieb: > Hi qooxdoo-devels, > > I first filed this as a bug: > > http://bugzilla.qooxdoo.org/show_bug.cgi?id=2897 > > but I've been thinking a bit more about this and am now a bit unsure if > this is really the case, so I hope someone here could shed some light on > this and tell me if this is the way it should work... so that I'm able > to properly apologize for my false alert, if it's necessary ;-) > > The thing is that if I add a move effect to a window the shadow isn't > moved accordingly, which in my opinion it should. A little workaround is > to just do window.setShadow(null), but this feels like some kind of hack > to me and I don't really like it that way. > > Here's some playground code, just click minimize on the window: > > var win = new qx.ui.window.Window("First Window"); > win.setWidth(300); > win.setHeight(200); > win.setShowClose(false); > win.setShowMaximize(false); > win.addListener("beforeMinimize", function(e){ > e.preventDefault(); > var move = new > qx.fx.effect.core.Move(e.getTarget().getContentElement().getDomElement()); > move.set({x : 200, y : 200, transition : "linear", mode : "absolute", > duration : 1}); > move.start(); > }); > this.getRoot().add(win, {left:20, top:20}); > win.open(); > > I probably don't know enough about the DOM but I think the window and > the shadow are likely to be different DOM elements and therefore the > shadow isn't moved, so the effect is working kind of correct, because I > only apply it to the DOM element of the window... Is there any nice way > to move them together? > > Would be nice, if someone could share his opinion with me. > > Best regards > > Dominik > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Christian Schmidt Software Entwickler 1&1 Internet AG - Web Technologies Ernst-Frey-Straße 9 · DE-76135 Karlsruhe [email protected] Amtsgericht Montabaur / HRB 6484 Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
