[Laszlo-dev] text attributes problems
Benjamin Shine
ben at laszlosystems.com
Sat Aug 12 22:23:13 EDT 2006
Discussed herein:
http://jira.openlaszlo.org/jira/browse/LPP-553 : can't setAttribute()
many text attributes
http://jira.openlaszlo.org/jira/browse/LPP-436 : fgcolor not
available for "text" component
CSS users expect lots of control over text properties -- at least
text color. However, our current support for text color is weird. The
normal setAttribute("attrname", val) doesn't provide a way to set
font color; you have to use the special setColor call.
The way to set the text color for an LzText instance is is to call
LzText.setColor(color_as_number);
which looks like this:
LzText.prototype.setColor = function ( c ){
this.colorstring = "#" + c.toString( 16 );
this.setFormat();
this.setText( this.getText() );
}
I can special case text color for the runtime CSS implementation,
but, yuck! These are marked as fix for seaswirl; any chance this
could get bumped up so it's in better shape for 3.4?
-ben
More information about the Laszlo-dev
mailing list