17fe5238421ff301f2b7360c96db92104e405094
chmalee
  Tue May 12 12:09:08 2026 -0700
myVariants fixes: widen drag-select dialog a bit to fit the new button, save only the actual variant position, not the variant plus padding position when making a variant out of an hgvs term, refs #33808

diff --git src/hg/inc/hgFind.h src/hg/inc/hgFind.h
index bb8288ee284..2f4cfb98ad1 100644
--- src/hg/inc/hgFind.h
+++ src/hg/inc/hgFind.h
@@ -2,30 +2,35 @@
 
 /* Copyright (C) 2010 The Regents of the University of California
  * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
 
 #ifndef HGFIND_H
 #define HGFIND_H
 
 #ifndef CART_H
 #include "cart.h"
 #endif
 
 #ifndef HGFINDSPEC_H
 #include "hgFindSpec.h"
 #endif
 
+/* matchesHgvs() widens its returned position by this many bases on each
+ * side so the visual context around the variant is visible after the
+ * browser jumps to it. */
+#define HGVS_FIND_PADDING 5
+
 
 struct hgPositions
 /* A bunch of positions in genome. */
     {
     struct hgPositions *next;	  /* Next in list. */
     char *query;		  /* Query string that led to positions. */
     char *database;               /* Name of database.  Not allocated here. */
     struct hgPosTable *tableList; /* List of tables. */
     int posCount;                 /* Number of positions in all tables. */
     struct hgPos *singlePos;      /* If resolves to a single position, reference to that here. */
     char *extraCgi;		  /* Extra info to embed in CGI requests to browser. */
     boolean useAlias;             /* Set if an alias is used */
     boolean shortCircuited;       /* Is this a result of a short circuit?  */
     };