Search
Window.restore Method
See Also
 






Restores the Window to a normal state.

Namespace: MindFusion.Common.UI
File: Window.js

 Syntax

JavaScript  Copy Code

function restore ()

 Remarks

The following code handles the windowOpening event of a Window class. The event handler checks the state of the Window and restores it to normal size, if it is minimized.

 Example

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.windowOpening.addEventListener(windowOpeningEventHandler);

function windowOpeningEventHandler(sender, args)
{
  //if the window is minimized
  if(args.changes.windowState === u.WindowState.Minimized)
      sender.restore();
}

 See Also