hi,
Alexander Back wrote:
Hi Amit,
On Thursday 05 March 2009 Amit Rana wrote:
Congratz for the new pre-release of Qooxdoo. Can you let me know when
will the SDK be out ?
Today ... that's the plan ;-)
you guys are always on time. :-) .
Change your snippet to
--snip--
var doc = this.getRoot();
var t = new qx.ui.form.TextField();
t.setBackgroundColor("red");
// remove the decorator
t.setDecorator(null);
doc.add(t);
--snip--
It worked. Thanks.
But, what confuses me is that if I comment the setDecorator() and put an
alert with getDecorator(), it gives null. So, the decorator is already
null (but that doesn't work and I have to again set it to null) ?? :-\
Anyhow, setting the decorator to null removed the borders too. So, I
added a decorator and set its background.
t.setDecorator(new qx.ui.decoration.Single(1,"solid","black"));
t.setBackgroundColor("red");
Thanks for the help.
Apparently, it sets only a part of the textfield background and not the
full background. Why so ?
Because the "decorator" covers the rest. In the case of the textfield the
decorator consists of a background-image and a background-color. Since you
only change the background-color the rest of the decorator remains there and
shows this artefacts.
cheers,
Alex
Amit
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel