beginAutoSizeChanged Method

Summary

Disable detecting if the viewer size has changed.

Syntax
TypeScript
JavaScript
ImageViewer.prototype.beginAutoSizeChanged = function() 
beginAutoSizeChanged(): void; 
Remarks

The viewer hooks to standard HTML Window "sizechanged" or "orientationchange" events depending on the browser being used. This will allow the viewer to recalculate the transformation matrix and cause a render if the size of the control (container div) changes. If an action causes multiple size changes (for example, a CSS transition or animation) then it is recommended to call BeginAutoSizeChanged to disable the automatic update and optimize performance and then re-enable the feature by calling EndAutoSizeChanged.

Calls to BeginAutoSizeChanged and EndAutoSizeChanged are accumulative. Each call to BeginAutoSizeChanged must be matched with a corresponding call to EndAutoSizeChanged.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.