Preview.GetAutoResizingMask
---------------------------

Queries auto resizing mask.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Preview](component_Preview.md) | [13.3](newinversion133.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "Preview.GetAutoResizingMask"; PreviewRef ) 

**MBS**( **"Preview.GetAutoResizingMask";** /\* Queries auto resizing mask. \*/  
**$PreviewRef**) /\* The reference ID for this preview control.e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PreviewRef | The reference ID for this preview control. | $ref |

### Result

Returns number or error.

### Description

Queries auto resizing mask.  
This defines whether view 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).  
### See also

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

### Blog Entries

- [MBS FileMaker Plugin, version 13.3pr5](https://www.mbsplugins.de/archive/2023-06-30/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 28th June 2023 , last changed 29th June 2023

  
[Preview.CreateWithControl](PreviewCreateWithControl.md) - [Preview.GetAutostarts](PreviewGetAutostarts.md)

[HTML Version](PreviewGetAutoResizingMask.shtml)