That line is right, if I put trace("styles: " + p + " :: " + value); I get
"styles: background :: url('assets/Unknown.jpeg') center / cover" so right... but in the DOM we get: <div class="mdl-card__title" style="position: relative; color: rgb(102, 102, 102); height: 176px;"> So the background is eliminated... 2016-11-09 23:10 GMT+01:00 Alex Harui <aha...@adobe.com>: > > > On 11/9/16, 2:02 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> > wrote: > > >Hi Alex, > > > >both "parseStyles" and "applyStyles" trace output shows background > >property. > >But in "getValue" if I check for valueName == "background", I can't get > >nothing (I get iBeadModel, iBeadController, width, height....) > >I'm very confused about this. > >from what code are this methods be called? > > I doubt any JS code will getValue("background"). getValue() calls happen > when code we write needs to check a CSS value. For the JS, all you should > need to do in applyStyles() is have it have the right values of "p" and > "value" at this line: > > (thisObject.element as HTMLElement).style[p] = value; > > Then if it still doesn't work, examine the DOM from the browser debugger > to see if those styles are still there or not. > > HTH, > > -Alex > > -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestación del servicio o información solicitados, teniendo usted derecho de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación necesaria.