Good solution. But why at Move.js? Grow and Shrink will set x and y
properties of Move. And the default mode is relative, so just they are
interesting for the move. I think you should put your enhancement to Grow
and Shrink. By the way doesn't have any element a parental node? ;)

IMHO patching Grow.js and Shrink.js at start method with:

var oldStyle = {
        top    : qx.bom.element.Location.getTop(element) -
qx.bom.element.Location.getTop(element.getParent()),
        left   : qx.bom.element.Location.getLeft(element) -
qx.bom.element.Location.getLeft(element.getParent()),
        width  : qx.bom.element.Dimension.getContentWidth(element),
        height : qx.bom.element.Dimension.getContentHeight(element),
        overflow : "visible"
};

Could be the solution!



 

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 14:13
An: [email protected]
Betreff: Re: [qooxdoo-devel] problem animating a widget

Check this code that is currently in Move.js. (qx.fx.effect.core.Move)
It takes in count the fact that the widgets has a parent object.
What do you think?

    setup : function()
    {
      var element = this._getElement();
      this.base(arguments);

      if(element.parentNode)  <------------------------
      {
        this.__originalLeft =
          qx.bom.element.Location.getLeft(element) -
          qx.bom.element.Location.getLeft(element.parentNode);

        this.__originalTop =
          qx.bom.element.Location.getTop(element) -
          qx.bom.element.Location.getTop(element.parentNode);
      }
      else
      {
        this.__originalLeft = qx.bom.element.Location.getLeft(element);
        this.__originalTop = qx.bom.element.Location.getTop(element);
      }
      this.__originalPosition = qx.bom.element.Style.get(element,
"position");

      qx.bom.element.Style.set(element, "position", "absolute");

      if (this.getMode() == 'absolute')
      {
        this.__x = this.getX() - this.__originalLeft;
        this.__y = this.getY() - this.__originalTop;
      }
      else
      {
        this.__x = this.getX();
        this.__y = this.getY();
      }
    },


-----
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-tp6621553p662195
4.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

Reply via email to