Hi,

I have created a simple new gui app and tried your functions:
here is my main function:
-------------------------------
    main : function()
    {
        this.base(arguments);

var shrink = function(obj)
{
        var dom         = obj.getContainerElement().getDomElement();
        var temp        = new qx.fx.effect.combination.Shrink(dom);
        temp.start();
}
var grow = function(obj)
{
        var dom         = obj.getContainerElement().getDomElement();
        var temp        = new qx.fx.effect.combination.Grow(dom);
        temp.start();
}

var button1 = new qx.ui.form.Button("First Button",
"icon/22/apps/internet-web-browser.png");

var doc = this.getRoot();
doc.add(button1,
{
  left : 100,
  top  : 50
});

button1.addListener("execute", function(e) {
  grow(this);
  // shrink(this);
});

  }
-----------------------------

when i call grow, it all works fine [it is set to 0 width and height, after
that is grown back to original size].
however, shrink makes it as small as zero width and height, that is why it
disappears.

I also tried this example in the playground, and the results are different
than in the application:
http://tinyurl.com/3nbjrd5
when i click the button, it gets display: none immediatly.

I will study more into it, as right now I am looking into animation anyway.

cheers,
Gabi

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/problem-animating-a-widget-tp6621553p6621887.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

Reply via email to