When the user click the Toolstrip call toolstrip.expand and show the
mole, right?
Sure you use onClick in toolstrip-button div to call a function but
you can use click event listener to know when the user click the
toolstrip and colapse/expand the mole.
For example:
document.addEventListener('click', function(e){
if (div == 'visible'){
//hide and collapse
}else{
//show and expand
}
}, false);
-v1c1ous
On Sep 3, 1:43 pm, "Daniele S." <[email protected]> wrote:
> I was misunderstand. The user can collapse the toolstrip without triggering
> any events ( It's not my code that call collapse ) just by clicking on the
> handle of the mole.
> My extension has no way to detect such behavior :/
>
> Daniele S.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---