[Laszlo-dev] text attributes problems

Jim Grandy jgrandy at openlaszlo.org
Sun Aug 13 02:13:35 EDT 2006


We can certainly bump them to 3.4, but unless someone successfully  
argues for a higher priority I think they'd be P2's for that release.  
(Are you raising this because CSS early adopters are asking for these  
bugs to be fixed? How difficult would they be to fix? Do they need to  
be fixed if we have style constraints -- why not write custom  
delegates that "do the right thing" rather than calling setAttribute?)

jim

On Aug 12, 2006, at 7:23 PM, Benjamin Shine wrote:

> 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
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev



More information about the Laszlo-dev mailing list