I have a FileExplorer that I've tagged some extra functionality on so that the preview window loads larger and is resizable. However, when I close this window, it is not destroyed and continues to lurk in the background. I want to destroy it so that if I go to open another window, that window will be the active one and pick up where the previous one left off.
Here is the code I am using for the extra properties, found in another thread:
This is wired to the OnClientFileOpen event on my FileExplorer.
Thanks,
Chris
Here is the code I am using for the extra properties, found in another thread:
function OnExplorerFileOpen(oExplorer, args){ if (!args.get_item().isDirectory()) { setTimeout(function () { var oWindowManager = oExplorer.get_windowManager(); var previewWindow = oWindowManager.getActiveWindow(); oWindowManager.add_show(addShowHandler); previewWindow.setSize(800, 500); }, 100); // Some timeout is required in order to allow the window to become active // destroy code will go here I hope? }}This is wired to the OnClientFileOpen event on my FileExplorer.
Thanks,
Chris