Tutorial: window.getBounds

window.getBounds

Gets the current bounds (top, left, width, height) of the window.

Bounds

{
    height: 40, //the height of the window.
    left: 40, //left-most coordinate of the window.
    top: 40, //top-most coordinate of the window.
    width: 40 //the width of the window.
}

Example

var finWindow = fin.desktop.Window.getCurrent();

finWindow.getBounds(function (bounds) {
    console.log("top: " + bounds.top +
        "left: " + bounds.left +
        "height: " + bounds.height +
        "width: " + bounds.width);
});