Turns out, maintaining a copy of the image and recreating it for each change
of the scaling, and showing only the copy, is working just fine.
Jim
On Fri, Mar 5, 2010 at 10:49 AM, Jim Hunter <[email protected]>wrote:
> OK< I think there is a bug in .8. If you create the image control and set
> the scale before you render it, it will scale properly. But once it is
> rendered it will not change it's scale. Here is sample code that can be run
> in the Playground to show it's behavior. If you run this in the 1.0.1
> Playground it works as expected, but in the .8 Playground clicking the
> button does nothing.
>
> var doc = this.getRoot();
>
> a = new qx.ui.basic.Image("http://img.constantcontact.com/ui/images1/safe_
> subscribe_logo.gif");
> a.setWidth(300);
> a.setHeight(40);
> doc.add(a);
> a.setScale(false); // doesn't matter if you start scaled or not
>
> var btn = new qx.ui.form.Button("Scale");
> btn.addListener("click", function(){
> a.toggleScale();
> this.info("Scale=" + a.getScale());
> });
> doc.add(btn, {top:200, left:50});
>
> Any workaround suggestions to make this work other then
> destroying/recreating the image control every time I want to scale it?
>
> Thanks,
> Jim
>
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel