Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.GetAutoResizingMask
Queries auto resizing mask.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Webview | 7.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.GetAutoResizingMask"; WebViewerRef ) More
Parameters
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. |
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).
Added iOS support in version 10.3.
See also
- AVPlayer.GetAutoResizingMask
- AVPlayer.SetAutoResizingMask
- DragDrop.GetAutoResizingMask
- MapView.GetAutoResizingMask
- MapView.SetAutoResizingMask
- Preview.GetAutoResizingMask
- Preview.SetAutoResizingMask
- TextView.GetAutoResizingMask
- TextView.SetAutoResizingMask
- WebView.SetAutoResizingMask
Release notes
- Version 7.5
- Added WebView.GetAutoResizingMask and WebView.SetAutoResizingMask to decide on window resize behavior for web viewer.
Blog Entries
This function is free to use.
Created 14th November 2017, last changed 1st March 2021