Hi Herman, IMHO it's a problem with the start method of qx.fx.effect.combination.Grow! I guess oldStyle.top and oldStyle.left should be 0 but qx.bom.element.Location.getTop(element) gets the offset position relative to the window, but our widget elements are often nested in parent div, so left and top must be zero. What is Thomas Fuchs thinking about? Maybe a bug?
start : function()
{
if (!this.base(arguments)) {
return;
}
var element = this._getElement();
// Element must be visible for move effect
qx.bom.element.Style.set(element, "display", "block");
qx.bom.element.Style.set(element, "overflow", "hidden");
var initialMoveX, initialMoveY;
var moveX, moveY;
var oldStyle = {
top : qx.bom.element.Location.getTop(element), // <-
left : qx.bom.element.Location.getLeft(element), // <-
width : qx.bom.element.Dimension.getContentWidth(element),
height : qx.bom.element.Dimension.getContentHeight(element),
overflow : "visible"
};
Regards Sak
SAKsystems
Inh. Mustafa Sak
Varrelmannstr. 16
30453 Hannover
Tel. +49 511 / 165 969 40
Fax +49 511 / 165 969 49
Mobil +49 163 / 312 6144
http://www.saksys.de
[email protected]
STEUER-Nr. 2613817458
-----Ursprüngliche Nachricht-----
Von: hgc2002 [mailto:[email protected]]
Gesendet: Dienstag, 26. Juli 2011 11:33
An: [email protected]
Betreff: [qooxdoo-devel] problem animating a widget
I've read that qx's animations are intended only for dom objects, not for
widgets.
I don't know how much of that is true. Maybe I'm trying to do something
imposible at this time.
But here is is: using pairs of efects like shrink/grow, fold out/fold in,
drop out/drop in, etc.
I've found that the first effect works perfectly, but the second one always
repaint
(if the word is correct) the widget moved verticaly (like 100px or so) of
the original
position (all my effects test has been done with framework's default values)
and I can't find a way to make it work as expected.
Here is an example of code of my library:
shrink : function(obj)
{
var dom =
obj.getContainerElement().getDomElement();
var temp = new
qx.fx.effect.combination.Shrink(dom);
temp.start();
},
grow : function(obj)
{
var dom =
obj.getContainerElement().getDomElement();
var temp = new
qx.fx.effect.combination.Grow(dom);
temp.start();
},
As you can see, there is nothing strange here. The obj is normaly a widget.
I just do shrink(widget) and then grow(widget) using two buttons for the
tests.
If you do it repeatedly, the problem get incremented (moved more and more).
Any idea?
Thanks,
Herman Gomez.
-----
la vida es una incesante cadena de oportunidades para aprender y triunfar.
life is an endless chain of opportunities to learn and succeed.
lo más importante: ser selectivo, responsable y perseverante.
the most importantly: to be selective, responsible and persevering.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/problem-animating-a-widget-tp6621553p662155
3.html
Sent from the qooxdoo mailing list archive at Nabble.com.
----------------------------------------------------------------------------
--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
<<attachment: Mustafa Sak ([email protected]).vcf>>
------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
