Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera
  • how can I get sidebar width from tab's contet script?

    I need it for my extension
    I manged to do it for top windows, but from iframes I need screen coordinates
    and this what happens when using screen coordinates

    gif shows that when sidebar is opened, popup is displaced for the width of the sidebar
    so how do I calculate that width
    or could you make some fetchable sidebar object with basic info, something like:
    for particular windowID
    {open: true, width: 200, active: true}