dojo dialog scroll bar issues

1654
1
09-03-2012 01:21 PM
AdrianMarsden
Occasional Contributor III
Hi

I have some code that uses an identify task.  In the idenfify task execute function, I loop through the layers found and the fields found to build up a set of tables (one per layer) containing all the field aliases and values - basically recreating the ArcIMS html viewer Identify All results.

I pop these up in a dojo dialog box. The box is defined by CSS as a specific percentage -

.dijitDialog{
  max-height: 50%;
  max-width:50%;
  overflow: auto;
}

this works fine for a few results, but when I have a fair few results, the vertical scroll bar appears - but the initial position is half way down the document.  I'm not sure if this is something I've missed or an issue with dojo itself.

Cheers

ACM
0 Kudos
1 Reply
AdrianMarsden
Occasional Contributor III
Resolved adding "autofocus:false" to the creation code works.
0 Kudos