Jun 01, 2012, 9:38 AM
Beta 2: fontWeight Style
Hi,
I'm setting fontWeight style to a div element in this way:
div.applyStyles({
"font-weight": div.getStyle("font-weight") == 'bold' ? 'normal' : 'bold'
});
But it looks like this only works for the first time. When I try to get its value, I'm always getting "700" as value.
Could this be a bug?
If I perform the same operation for "font-style", "text-decoration"or "text-align" properties, it works as expected...
Thanks in advance,
Dominik.
I'm setting fontWeight style to a div element in this way:
div.applyStyles({
"font-weight": div.getStyle("font-weight") == 'bold' ? 'normal' : 'bold'
});
But it looks like this only works for the first time. When I try to get its value, I'm always getting "700" as value.
Could this be a bug?
If I perform the same operation for "font-style", "text-decoration"or "text-align" properties, it works as expected...
Thanks in advance,
Dominik.