Overview
OpenFin's default behavior is to open windows at the Applications Default Zoom Level. When set, the 'Save Window State' option opens windows with the same size, position, and zoom level settings as it was previously closed with.
The 'Save Window State' option can be applied to all the applications windows, or configured on a per window basis.
Pre-requisites
- Runtime version 9.61.35.22 (For Zoom Level support)
Examples
Persisting the Zoom Level for all application windows
To active 'Save Window State' on all the applications windows the 'saveWindowState' parameter should be set to true (default is false) in the Application Configuration file in the `startup_app` section:
"startup_app": {
...
"saveWindowState": true,
...
}
Persisting the Zoom Level on a per-window basis
To active 'Save Window State' per window, the "saveWindowState" should be set to true in the Widow options passed into the Window constructor:
varwin = new fin.desktop.Window(
{
name: "windowName",
url: "pageurl.html",
saveWindowState : true,
}, function() {
win.show();
}, function(error) {
console.log("Error creating window:", error);
};
);
Comments
0 comments
Please sign in to leave a comment.