Hello,
I have some custom searches in Fusion that open in a new window, however, the window is quite large. The same search windows in the Ajax viewer are much smaller. How do I change the size of these search windows in Fusion?
Thanks!
In the search.js file there is a fragment of code that looks like this:
Fusion.Widget.Search = OpenLayers.Class(Fusion.Widget, { uiClass: Jx.Button, sFeatures : 'menubar=no,location=no,status=no,scrollbars=yes',
Change the sFeatures string to suit your needs:
Here's a reference of all available options (look at the "specs" parameter)
http://www.w3schools.com/jsref/met_win_open.asp
Note however that is a global setting that applies to all search widgets
- Jackie
Thanks Jackie! I found the Search.js file, and made the following changes and there are no changes to the window. Is my syntax correct?
sFeatures : (height=50, width=50, resizeable=yes menubar=no,location=no,status=no,scrollbars=yes)
Thanks!
Thanks again Jackie.
For some reason it is not working, is there something else I am missing?
sFeatures :'width=50,height=50,menubar=no,location=no,scrollbars=yes',
Sorry to be such a pain, but I really need to get this resolved.
Thanks!
By default fusion loads a compressed single file (fusionSF-compressed.js) that contains all the fusion libraries and widget js files combined into one single compressed file.
So you would have to build a new version of this file that incorporates the modified Search.js
You need Apache Ant to (re)build the fusionSF-compressed.js file
- Jackie