MapView.SetAutoResizingMask
---------------------------

Sets the auto resizing mask.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MapView](component_MapView.md) | [9.0](newinversion90.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "MapView.SetAutoResizingMask"; MapView; Value ) 

**MBS**( **"MapView.SetAutoResizingMask";** /\* Sets the auto resizing mask. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Value**) /\* The new setting.e.g. 4+8 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Value | The new setting. | 4+8 |

### Result

Returns OK or error.

### Description

Sets the auto resizing mask.  
This defines whether web viewer changes its size based on the surrounding window.  
  
| Name | Value | Description |
|---|---|---|
| NotSizable | 0 | The view cannot be resized. |
| MinXMargin | 1 | The left margin between the view and its superview is flexible. |
| WidthSizable | 2 | The view’s width is flexible. |
| MaxXMargin | 4 | The right margin between the view and its superview is flexible. |
| MinYMargin | 8 | The bottom margin between the view and its superview is flexible. |
| HeightSizable | 16 | The view’s height is flexible. |
| MaxYMargin | 32 | The top margin between the view and its superview is flexible. |

  
e.g. the value 18 means the view can resize both horizontally and vertically with the parent view (window).  
  
Due to changes in FileMaker 21, the auto resize feature stopped working.  
### Examples

Make mapview resizable:

 MBS ( "MapView.SetAutoResizingMask"; $$MapView ; 2+16 )  
Set autoresize, so the control stays where it is:

 Set Variable \[ $r ; Value: MBS ( "MapView.SetAutoResizingMask"; $$Player ; 4+8 ) \]  
### See also

- [AVPlayer.SetAutoResizingMask](AVPlayerSetAutoResizingMask.md)
- [DragDrop.GetAutoResizingMask](DragDropGetAutoResizingMask.md)
- [DragDrop.SetAutoResizingMask](DragDropSetAutoResizingMask.md)
- [MapView.GetAutoResizingMask](MapViewGetAutoResizingMask.md)
- [Preview.GetAutoResizingMask](PreviewGetAutoResizingMask.md)
- [Preview.SetAutoResizingMask](PreviewSetAutoResizingMask.md)
- [TextView.GetAutoResizingMask](TextViewGetAutoResizingMask.md)
- [TextView.SetAutoResizingMask](TextViewSetAutoResizingMask.md)
- [WebView.GetAutoResizingMask](WebViewGetAutoResizingMask.md)
- [WebView.SetAutoResizingMask](WebViewSetAutoResizingMask.md)

### Example Databases

- [iOS/Examples/MapKit iOS](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/MapKit%20iOS.shtml#6ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 9.0pr9](https://www.mbsplugins.de/archive/2019-01-20/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th January 2019 , last changed 17th October 2024

  
[MapView.SetAnnotationSelectedImage](MapViewSetAnnotationSelectedImage.md) - [MapView.SetColor](MapViewSetColor.md)

[HTML Version](MapViewSetAutoResizingMask.shtml)