WebView.SetHeight
-----------------

Sets the height of the WebViewer.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [15.5](newinversion155.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "WebView.SetHeight"; WebViewerRef; Value ) 

**MBS**( **"WebView.SetHeight";** /\* Sets the height of the WebViewer. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/   
**$Value**) /\* The new height in points. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |
| Value | The new height in points. |  |

### Result

Returns OK or error.

### Description

Sets the height of the WebViewer.  
While this may be useful for e.g. to make a screenshot of a WebViewer with content rendered for that height, FileMaker Pro is not aware about the change and may reset it later at any time.  
### Examples

Set front WebViewer to 500x400:

 Set Variable \[ $r ; Value: MBS ("[WebView.SetWidth](WebViewSetWidth.md)"; ""; 500) &amp; MBS ("WebView.SetHeight"; ""; 400) \]  
### See also

- [MapView.GetHeight](MapViewGetHeight.md)
- [TextView.GetHeight](TextViewGetHeight.md)
- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetHeight](WebViewGetHeight.md)
- [WebView.SetHidden](WebViewSetHidden.md)
- [WebView.SetSilent](WebViewSetSilent.md)
- [WebView.SetWidth](WebViewSetWidth.md)

### Release notes

- **Version 15.5**
    - Added [WebView.GetHeight](https://www.mbsplugins.eu/WebViewGetHeight.shtml), [WebView.GetWidth](https://www.mbsplugins.eu/WebViewGetWidth.shtml), [WebView.SetHeight](https://www.mbsplugins.eu/WebViewSetHeight.shtml) and [WebView.SetWidth](https://www.mbsplugins.eu/WebViewSetWidth.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 15.5pr2](https://www.mbsplugins.de/archive/2025-10-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 4th October 2025 , last changed 6th October 2025

  
[WebView.SetFrameWithControl](WebViewSetFrameWithControl.md) - [WebView.SetHidden](WebViewSetHidden.md)

[HTML Version](WebViewSetHeight.shtml)