Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm specifically asking for when the "Display HTML formatting" is configured as "As a table of the visible fields.", but I think all options behave the same way.

My users click the HTML Popup toolalt text, click the feature on the map to display the HTML popup window, and resize the window until the get the desired size. If they close that window, and repeat the steps...the windows reverts back to the original size and they must resize each time. They feel, and I agree with them, that the window should open up to be the same size as when it was closed. Is this an ArcMap configuration? Or is there a registry value? Is there a way to affect window size if you format using an XSL template?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

There is an ESRI forum thread which deals with this issue. It can be apparently worked around by using XSL templates and html IFRAMEs. The thread is quite old, so I am not sure if the workaround still applies to ArcGIS 10.. might as well be completely useless by now.

EDIT: See Jay's expanded answer with screenshots.

share|improve this answer
    
I'm not using a URL, but I left out the src for the IFRAME and it still works! –  Jay Cummins Dec 21 '10 at 18:40
    
Ah, so it's just the presence of an IFRAME inside the popup window which does the trick. Glad it works for you. –  Petr Krebs Dec 21 '10 at 19:03
add comment

Expanded answer based on @petr k.'s accepted answer.


The example in the ESRI forum is using a URL, but I was able to knock out the src attribute and set the height to 0 in order to control my width: <iframe width="500" height="0"></iframe> In my case, I'm not concerned about the height of the window.

In ArcGIS 10, I selected the "As a formatted page based on an XSL template" and then Load-->Load default template to get something to tweak.

alt text In the XSL find the <body> and <table> tags:

<body style="margin:0px 0px 0px 0px;overflow:auto;background:#FFFFFF;">
<table style="font-family:Arial,Verdana,Times;font-size:12px;text-align:left;width:100%;border-collapse:collapse;padding:3px 3px 3px 3px">

...and put the <iframe width="500" height="0"></iframe> in between them:

alt text

share|improve this answer
    
Great! Will be very helpful to other people. +1 –  Petr Krebs Dec 21 '10 at 19:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.