Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adjust Search Window Size in Fusion

5 REPLIES 5
Reply
Message 1 of 6
emluv
692 Views, 5 Replies

Adjust Search Window Size in Fusion

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!Smiley Happy

emluv
5 REPLIES 5
Message 2 of 6
jackie.ng
in reply to: emluv

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

Message 3 of 6
emluv
in reply to: emluv

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!

 

 

emluv
Message 4 of 6
jackie.ng
in reply to: emluv

It should be surrounded by single quotes and not parentheses

 

- Jackie

Message 5 of 6
emluv
in reply to: emluv

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!

emluv
Message 6 of 6
jackie.ng
in reply to: emluv

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report