On Thu, Jun 4, 2009 at 9:41 AM, AlexItelman <[email protected]> wrote: > > I tried calling this method in my extension from my toolstrip, in an > onclick event, and I got the following error: > > Uncaught TypeError: Object #<an Object> has no method 'createWindow' > > 1. what did I do wrong?
Argh, the documentation (http://dev.chromium.org/developers/design-documents/extensions/windows-api) is out of date. I think it is chrome.windows.create() now. You can see for sure by looking in the inspector. Right-click the toolstrip to bring up the inspector and show the console (it is one of the icons along the bottom left). type "chrome.windows" and you can explore the methods there. > 2. Is this the best way to do what I want? - open a drop-down > (actually drop-up) menu with my content inside it when clicking a > button in the toolstrip. Is there a more elegant way than creating a > window and positioning it above the button? BTW, how do I position it > there? I don't think this will work very well. For one, you can't make frameless windows this way. The closest you can get is by using the regular window.open() methods, but I think it will be tricky to make look good. We want to eventually support creating floating panes like this, but until then I suggest rethinking your UI to make it fit in either fully-fledged tabs or a normal popup window. - a --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
