setting style using set();
Reported by James Snowden | November 17th, 2010 @ 12:30 AM | in 2.2.0 Release
Using the standard setter ( set(); ) the style attribute is not set, however, using the setStyle(); method it is. I would expect to be able to set the style attribute using the former.
THIS DOESN'T WORK FOR ME... (the id and class are set but not the style)
element.set({
"id": "my-id",
"class": "my-classes",
"style": "top:100px;"
});
NOR DOES THIS... (the id and class are set but not the style)
element.set({
"id": "my-id",
"class": "my-classes",
"style": {"top":"100px"}
});
BUT THIS DOES...
element.setStyle({
"top":"100px"
});
Comments and changes to this ticket
-
MadRabbit November 22nd, 2010 @ 05:59 PM
- Milestone set to 2.2.0 Release
- Tag set to core, enhancement, style
- Milestone order changed from 196640 to 0
Hi James,
Yes, that would make sense. Will check it with the next release.
-
James Snowden November 22nd, 2010 @ 06:19 PM
Thanks for the update MadRabbit, and a wonderful framework!
-
MadRabbit January 6th, 2011 @ 06:25 PM
- State changed from new to resolved
fixed, will appear in RightJS 2.2 release
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RightJS Core Tickets