diff --git a/docs/api/browser-view.md b/docs/api/browser-view.md index 7b722db45e49..2779beebfab4 100644 --- a/docs/api/browser-view.md +++ b/docs/api/browser-view.md @@ -46,15 +46,15 @@ Objects created with `new BrowserView` have the following properties: A [`WebContents`](web-contents.md) object owned by this view. -#### `win.id` _Experimental_ +#### `view.id` _Experimental_ A `Integer` representing the unique ID of the view. ### Instance Methods -Objects created with `new BrowserWindow` have the following instance methods: +Objects created with `new BrowserView` have the following instance methods: -#### `win.setAutoResize(options)` _Experimental_ +#### `view.setAutoResize(options)` _Experimental_ * `options` Object * `width` Boolean - If `true`, the view's width will grow and shrink together @@ -62,13 +62,13 @@ Objects created with `new BrowserWindow` have the following instance methods: * `height` Boolean - If `true`, the view's height will grow and shrink together with the window. `false` by default. -#### `win.setBounds(bounds)` _Experimental_ +#### `view.setBounds(bounds)` _Experimental_ * `bounds` [Rectangle](structures/rectangle.md) Resizes and moves the view to the supplied bounds relative to the window. -#### `win.setBackgroundColor(color)` _Experimental_ +#### `view.setBackgroundColor(color)` _Experimental_ * `color` String - Color in `#aarrggbb` or `#argb` form. The alpha channel is optional.