Vincent Eberle
unread,Jun 21, 2012, 4:46:42 PM6/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KnockoutJS
When trying to bind the transform styles in Knockout,
<img data-bind="attr: { src: src }, style: {
width: scaledWidthCss(),
top: topCss(),
left: leftCss(),
'-webkit-transform': imageRotateCss(),
'-o-transform': imageRotateCss(),
'transform': imageRotateCss(),
'-moz-transform': imageRotateCss() }"/>
where imageRotateCss() definitely evaluates to the string
'rotate(45deg)'. This is working in Chrome but the binding doesn't
work in Firefox even though rotating works when I manually apply a '-
moz-transform' in Firebug.
If anyone could help, I'd appreciate it.
Thanks