cb9fb99f244f81dbb448b674e465e3dfd2a548d5
angie
  Fri Apr 15 16:40:20 2016 -0700
Hide the Find Position section contents until they're filled in, so we don't see empty containers jumping around.  refs #15277 sorta

diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js
index e4a2e16..158f237 100644
--- src/hg/js/hgGateway.js
+++ src/hg/js/hgGateway.js
@@ -1194,33 +1194,36 @@
     function updateFindPositionSection(uiState) {
         var suggestUrl = null;
         if (uiState.suggestTrack) {
             suggestUrl = 'hgSuggest?db=' + uiState.db + '&prefix=';
         }
         setAssemblyOptions(uiState);
         if (uiState.position) {
             $('#positionDisplay').text(uiState.position);
         }
         autocompleteCat.init($('#positionInput'),
                              { baseUrl: suggestUrl,
                                watermark: positionWatermark,
                                onSelect: onSelectGene,
                                enterSelectsIdentical: true,
                                onEnterTerm: goToHgTracks });
-        updateGoButtonPosition();
         setAssemblyDescriptionTitle(uiState.db, uiState.genome);
         updateDescription(uiState.description);
+        if (uiState.db) {
+            $('#findPositionContents').show();
+        }
+        updateGoButtonPosition();
     }
 
     function removeDups(inList, isDup) {
         // Return a list with only unique items from inList, using isDup(a, b) -> true if a =~ b
         var inLength = inList.length;
         // inListDups is an array of boolean flags for marking duplicates, parallel to inList.
         var inListDups = [];
         var outList = [];
         var i, j;
         for (i = 0;  i < inLength;  i++) {
             // If something has already been marked as a duplicate, skip it.
             if (! inListDups[i]) {
                 // the first time we see a value, add it to outList.
                 outList.push(inList[i]);
                 for (j = i+1;  j < inLength;  j++) {