BrowserView

    Process: Main

    • options Object (optional)

    Experimental

    A WebContents object owned by this view.

    Objects created with new BrowserView have the following instance methods:

    view.setAutoResize(options) Experimental

    • options Object
      • width Boolean (optional) - If true, the view’s width will grow and shrink together with the window. false by default.
      • height Boolean (optional) - If true, the view’s height will grow and shrink together with the window. false by default.
      • horizontal Boolean (optional) - If true, the view’s x position and width will grow and shrink proportionally with the window. by default.
      • vertical Boolean (optional) - If true, the view’s y position and height will grow and shrink proportionally with the window. false by default.

    view.setBounds(bounds) Experimental

    view.getBounds() Experimental

    Returns Rectangle

    The bounds of this BrowserView instance as Object.

    view.setBackgroundColor(color) Experimental

    • color String - Color in #aarrggbb or form. The alpha channel is optional.