Image Scaling

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Image Scaling

nminhtrung
This post has NOT been accepted by the mailing list yet.
Hi guys,

I'm new at qooxdoo.

I got an issue with image in qooxdoo 3.0

I am trying to create a class which extends qx.ui.basic.Image like:

qx.Class.define("myqxd.RegularImage", {
  extend : qx.ui.basic.Image,
        construct : function(source) {
                this.base(arguments, source);
               
                this.addListener("mouseover", this._onMouseOver, this);
                this.addListener("mouseout", this._onMouseOut, this);
                this.addListener("click", this._onClick, this);
        },
       
        members : {
                _onMouseOver : function(e) {
                        this.setCursor("pointer");
                },
               
                _onMouseOut : function(e) {
                        this.setCursor("default");
                },
               
                _onClick : function(e) {
                        alert("Regular image is clicked!!!");
                }
        }
});

In Application.js file, I do the following things:

qx.Class.define("myqxd.Application", {
  extend : qx.application.Standalone,
        members : {
            main : function() {
                    ...
                    var doc = this.getRoot();
                   
                    var regImg = new myqxd.RegularImage("myqxd/test.png");
                    regImg.setScale(true);

                    doc.add(regImg, {left : 50, top : 50});
                    ...
            }
  }
});

Every time I try to set "regImg.setScale(true)", and then all listeners (mouseover, mouseout, click) inside RegularImage class seem to be disabled.

I've tried hard to figure out the reason, but I still got nothing.

Could you please help me taking a look at this and explain to me the reason why it does not work as expected.

Sincerely thanks,
Trung
Reply | Threaded
Open this post in threaded view
|

Re: Image Scaling

nminhtrung
Anybody please help me!!!

Sincerely thanks,
Trung
Reply | Threaded
Open this post in threaded view
|

Re: Image Scaling

Thomas Herchenroeder
Trung, please re-post your original question. As you can see following
the Nabble link in your mail your original question was not permitted
onto the mailing list.

T.

On 11/28/2013 11:08 AM, nminhtrung wrote:

> Anybody please help me!!!
>
> Sincerely thanks,
> Trung
>
>
>
> --
> View this message in context: http://qooxdoo.678.n2.nabble.com/Image-Scaling-tp7584956p7584962.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Image Scaling

Daniel Wagner
Administrator
In reply to this post by nminhtrung
Hi,

that's a bug in qx 3.0. I've opened a report:

http://bugzilla.qooxdoo.org/show_bug.cgi?id=7908

Working on a fix right now, should be ready soon.


Regards,
Daniel

On 28.11.2013 11:08, nminhtrung wrote:

> Anybody please help me!!!
>
> Sincerely thanks,
> Trung
>
>
>
> --
> View this message in context: http://qooxdoo.678.n2.nabble.com/Image-Scaling-tp7584956p7584962.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel