[OpenLayers-Users] Button Active CSS Styling

Eric Lemoine eric.lemoine at camptocamp.com
Thu Jan 7 12:00:41 EST 2010


On Thursday, January 7, 2010, Henry Rotzoll <henry.rotzoll at dlr.de> wrote:
>
> Thanks Kris!
>
> "btn.activate();" did the trick!

Your control is a button as opposed to a toggle, and it's not active
by default its DOM element gets "Inactive" class. When you activate it
gets the "Active" class, so it's rendering changes. I don't understand
why you need two classes and two ways to render the button.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list