On 3/15/16, 9:54 PM, "santanu4ver" <[email protected]> wrote:

>Hello everyone. Thank you, for taking yours time out to helping me solve
>this
>problem. 
>
>
>Peter Ent wrote
>> 3. Then use the SolidBackgroundBead's backgroundColor property setter
>>to 
>> change the background color:
>> 
>>         this.backgroundColor = newColorFromStyle;
>> 
>> and that should work or be very close to it. I don't think you need the
>> compiler directives at all.
>
>Does that mean I do not need to call /changeHandler()/ after this?

I think so.  The background needs to be redrawn.

>
>
>Alex Harui wrote
>> However, SolidBackgroundBead is only used for SWFs since the DIV used by
>> Container in HTML already supports backgroundColor (or should unless we
>> have a bug).
>
>1. I noticed that updating 'className' property with another style updates
>in HTML version (background-color) which supports your saying.
>2. Since we purely interested in HTML output, we may want to emphasis on
>how
>it's working on HTML version

The className property in HTML is mapped directly to the element's
className.  In the SWF version, we have to emulate all that functionality
ourselves, in various beads.

> 
>3. Passing border styles through 'className' styles never worked in HTML
>version (nor in SWF version). This only I able to worked through
><js:SimpleCSSStyles/>. Does border styles through 'className' property is
>not supportable?

For a Container?  Or some other component?  Some components have styles
defined in defaults.css.  There might be a bug in order of precedence.
Border should work as expected so further investigation is needed.

> 
>4. If <js:SimpleCSSStyles/> ONLY able to give us ability to modify border
>styles, then I would like to discuss how to update this style instead of
>'className' property.

SimpleCSSStyles also expects the styles won't change.  There is a
BindableCSSStyles class that dispatches valueChange events when you change
the style properties.  Your new version of SolidBackgroundBead may want to
check for changes there as well.  Similar work is needed for
SingleLineBorderBead.

>5. Why <js:SimpleCSSStyles/> has 'verticalAlign' but not
>'horizontalAlign'?
>Moreover, why the property is not working expectedly in HTML or SWF
>output?

AIUI, CSS does not have a horizontalAlign property.  The Spark component
set will support it since it is trying to emulate existing Spark behavior,
but the basic component set is trying to wrap low level HTML elements.  I
don't know why verticalAlign isn't working in the HTML version.  If it
isn't working in the SWF version it is probably a bug.  Feel free to
investigate a fix, or file a JIRA bug.

>6. If I declare both 'className' and <js:SimpleCSSStyles/> to a Container,
>which style should take preference?

SimpleCSSStyles has precedence.  It is just like setting element.styles
directly.

>
>
>Lots of questions, but I think this also a learning curve for me/us.
>Thanks
>for yours patience and staying long with me!
>

It is a learning curve for us as well as we learn what we haven't
communicated about FlexJS and what bugs are still out there.  Thank you
for being patient and working with us.  Again, I am shutting down for the
evening.  I will look at your JIRA issues tomorrow.

Thanks,
-Alex

Reply via email to