[Laszlo-dev] [boxmodel] bordercolor

P T Withington ptw at pobox.com
Wed Sep 21 08:39:40 PDT 2011


This may be due to insufficient precision in the API documentation.

The new attributes that are settable by CSS have much more strict immediate representations.  In this particular case, I expect the immediate value of bordercolor is required to be an array or colors, something like:

bordercolor="$once{['pink']}"

(I think you can specify up to 4 colors, for top, right, bottom, left border.)

You could try setting the color using a style.  If that works, then I believe my explanation.  I don't have time right now to check the source, sorry.

On 2011-09-21, at 08:09, Rami Ojares / AMG wrote:

> Hi,
> 
> I noticed that setting the bordercolor attribute in the boxmodel
> makes the border transparent. If I don't set it, it is black as expected.
> 
> Try the following for example:
> 
> <canvas proxied="false" allowfullscreen="true" framerate="20" bgcolor="green">
> <view with="boxmodel" height="50" width="50" bordertopwidth="3" bgcolor="red" bordercolor="pink"/>
> </canvas>
> 
> The top border is transparent although it should be pink.
> 
> - rami




More information about the Laszlo-dev mailing list