Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

setting style using set();

#407

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"
});

Reported by James Snowden · November 17th, 2010 @ 12:30 AM

State: resolved
Milestone: 2.2.0 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • 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.

    November 22nd, 2010 @ 05:59 PM

  2. James Snowden
    James Snowden

    Thanks for the update MadRabbit, and a wonderful framework!

    November 22nd, 2010 @ 06:19 PM

  3. MadRabbit
    MadRabbit
    • State changed from new to resolved

    fixed, will appear in RightJS 2.2 release

    January 6th, 2011 @ 06:25 PM

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.