RegisterBoundsChange API
Purpose
This API allows JS web app to register a callback that will be notified whenever any child window's size or position changes. The primary motivation is to support a feature called "saved layout". This feature allows the symphony web app to save the size and location of child windows and restore them when the app is restarted (or refreshed).
RegisterBoundsChange API
ssf.registerBoundsChange(callback);The given callback function will be invoked whenever a child window changes size or position.
The callback will provide the following info:
{
x: number
y: number
width: number
height: number
windowName: string
}where the given values a the new updated size and position for the given child window.
The coordinate system is such that the upper left corner of the main window is (0,0). For multi-monitor scenarios the coordinates are relative to the main window.
For example, see the three monitor system below: