Updates window dimensions after applying changes to DOM elements.
Namespace: MindFusion.Common.UI
File: Window.js
JavaScript Copy Code |
---|
function updateBounds ([autoSize]) |
Boolean. True to autosize the window, otherwise false.
The following code handles the windowClosing event of a Window class. The event handler checks the id of the Window and cancels the action and restores the Window to normal size, updating its bounds:
JavaScript Copy Code |
---|
var u = MindFusion.Common.UI; window.windowClosing.addEventListener(windowClosingEventHandler); function windowClosingEventHandler(sender, args) |