Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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.

NameValueDescription
NotSizable0The view cannot be resized.
MinXMargin1The left margin between the view and its superview is flexible.
WidthSizable2The view’s width is flexible.
MaxXMargin4The right margin between the view and its superview is flexible.
MinYMargin8The bottom margin between the view and its superview is flexible.
HeightSizable16The view’s height is flexible.
MaxYMargin32The 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

Release notes

Blog Entries

This function is free to use.

Created 14th November 2017, last changed 1st March 2021


WebView.GetAllowsLinkPreview - WebView.GetCustomUserAgent

💬 Ask a question or report a problem